From 12f978afaf1a2435ce2f94c19a73bcade3983d24 Mon Sep 17 00:00:00 2001 From: whiteshark0 Date: Tue, 24 Nov 2009 18:32:49 +0000 Subject: fixed this f11 thing canni mentioned git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/trunk@1959 b956fd51-792f-4845-bead-9b4dfca2ff2c --- src/base/UMain.pas | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/base/UMain.pas b/src/base/UMain.pas index 0012fef3..d5e0ccb3 100644 --- a/src/base/UMain.pas +++ b/src/base/UMain.pas @@ -483,8 +483,13 @@ begin if not Assigned(Display.NextScreen) then begin //drop input when changing screens - if (Event.key.keysym.sym = SDLK_F11) or - ((Event.key.keysym.sym = SDLK_RETURN) and + { to-do : F11 was used for fullscreen toggle, too here + but we also use the key in screenname and some other + screens. It is droped although fullscreen toggle doesn't + even work on windows. + should we add (Event.key.keysym.sym = SDLK_F11) here + anyway? } + if ((Event.key.keysym.sym = SDLK_RETURN) and ((Event.key.keysym.modifier and KMOD_ALT) <> 0)) then // toggle full screen begin Ini.FullScreen := integer( not boolean( Ini.FullScreen ) ); -- cgit v1.2.3