]> Pileus Git - ~andy/gtk/commitdiff
Let the system handle Alt-Space, too. Thanks to Tim Evans (#91477).
authorTor Lillqvist <tml@iki.fi>
Sat, 24 Aug 2002 20:26:59 +0000 (20:26 +0000)
committerTor Lillqvist <tml@src.gnome.org>
Sat, 24 Aug 2002 20:26:59 +0000 (20:26 +0000)
2002-08-24  Tor Lillqvist  <tml@iki.fi>

* gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
system handle Alt-Space, too. Thanks to Tim Evans (#91477).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gdk/win32/gdkevents-win32.c

index e26b806a86de2c1bba789ac6b41b8949b9d8cb5c..4c26ef14deaca1c39bc5d611500e967812ea09f1 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-24  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
+       system handle Alt-Space, too. Thanks to Tim Evans (#91477).
+
 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
 
        * docs/tutorial/gtk-tut.sgml, examples/*:
index e26b806a86de2c1bba789ac6b41b8949b9d8cb5c..4c26ef14deaca1c39bc5d611500e967812ea09f1 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-24  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
+       system handle Alt-Space, too. Thanks to Tim Evans (#91477).
+
 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
 
        * docs/tutorial/gtk-tut.sgml, examples/*:
index e26b806a86de2c1bba789ac6b41b8949b9d8cb5c..4c26ef14deaca1c39bc5d611500e967812ea09f1 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-24  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
+       system handle Alt-Space, too. Thanks to Tim Evans (#91477).
+
 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
 
        * docs/tutorial/gtk-tut.sgml, examples/*:
index e26b806a86de2c1bba789ac6b41b8949b9d8cb5c..4c26ef14deaca1c39bc5d611500e967812ea09f1 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-24  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
+       system handle Alt-Space, too. Thanks to Tim Evans (#91477).
+
 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
 
        * docs/tutorial/gtk-tut.sgml, examples/*:
index e26b806a86de2c1bba789ac6b41b8949b9d8cb5c..4c26ef14deaca1c39bc5d611500e967812ea09f1 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-24  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
+       system handle Alt-Space, too. Thanks to Tim Evans (#91477).
+
 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
 
        * docs/tutorial/gtk-tut.sgml, examples/*:
index e26b806a86de2c1bba789ac6b41b8949b9d8cb5c..4c26ef14deaca1c39bc5d611500e967812ea09f1 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-24  Tor Lillqvist  <tml@iki.fi>
+
+       * gdk/win32/gdkevents-win32.c (gdk_event_translate): Let the
+       system handle Alt-Space, too. Thanks to Tim Evans (#91477).
+
 Sat Aug 24 12:46:37 BST 2002  Tony Gale <gale@gtk.org>
 
        * docs/tutorial/gtk-tut.sgml, examples/*:
index ab86283a95a02f41968d1960880e0deb364d4adf..b28c2f5ddfc70b8f6b6b1561c324602e238b1e74 100644 (file)
@@ -2085,12 +2085,20 @@ gdk_event_translate (GdkDisplay *display,
       /* If posted without us having keyboard focus, ignore */
       if (!(msg->lParam & 0x20000000))
        break;
+
       /* Let the system handle Alt-Tab, Alt-Enter and Alt-F4 */
       if (msg->wParam == VK_TAB
          || msg->wParam == VK_RETURN
          || msg->wParam == VK_F4)
        break;
 
+      /* Let the system handle Alt-Space, and ignore the WM_SYSCHAR too */
+      if (msg->wParam == VK_SPACE)
+       {
+         ignore_wm_char = TRUE;
+         break;
+       }
+
       /* Jump to code in common with WM_KEYUP and WM_KEYDOWN */
       goto keyup_or_down;
 
@@ -2931,9 +2939,9 @@ gdk_event_translate (GdkDisplay *display,
           expose_rect.width = paintstruct.rcPaint.right - paintstruct.rcPaint.left;
           expose_rect.height = paintstruct.rcPaint.bottom - paintstruct.rcPaint.top;
 
-           _gdk_window_process_expose (window, msg->time, &expose_rect);
+         _gdk_window_process_expose (window, msg->time, &expose_rect);
 
-           return_val = FALSE;
+         return_val = FALSE;
         }
       break;