changeset 4942:c127755eebee

Allow META-Enter to toggle fullscreen mode
author Sam Lantinga <slouken@libsdl.org>
date Sat, 01 Jan 2011 19:38:56 -0800
parents bd009a923441
children f65299ded39c
files test/testwm.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/testwm.c	Sat Jan 01 19:38:23 2011 -0800
+++ b/test/testwm.c	Sat Jan 01 19:38:56 2011 -0800
@@ -311,7 +311,7 @@
             HotKey_Iconify();
         }
         if ((event->key.keysym.sym == SDLK_RETURN) &&
-            (event->key.keysym.mod & KMOD_ALT)) {
+            (event->key.keysym.mod & (KMOD_ALT|KMOD_META))) {
             HotKey_ToggleFullScreen();
         }
         return (0);