summaryrefslogtreecommitdiff
path: root/gdk/win32
diff options
context:
space:
mode:
authorTor Lillqvist <tml@novell.com>2006-04-19 09:42:06 +0000
committerTor Lillqvist <tml@src.gnome.org>2006-04-19 09:42:06 +0000
commit8ae3fade371f3c687d1e2194cfa8e365a3422cbc (patch)
tree022f7cd7a30991815f9e9b1d6987af9d30d5c753 /gdk/win32
parent31cb2ead9e8925e109e9900fd0b816f1fdd4f2ee (diff)
downloadgtk+-8ae3fade371f3c687d1e2194cfa8e365a3422cbc.tar.gz
Map VK_NUMPAD[0-9] to GDK_KP_[0-9]. (#337562)
2006-04-19 Tor Lillqvist <tml@novell.com> * gdk/win32/gdkkeys-win32.c (handle_special): Map VK_NUMPAD[0-9] to GDK_KP_[0-9]. (#337562)
Diffstat (limited to 'gdk/win32')
-rw-r--r--gdk/win32/gdkkeys-win32.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/gdk/win32/gdkkeys-win32.c b/gdk/win32/gdkkeys-win32.c
index ee144d9fe4..2b2fb6693e 100644
--- a/gdk/win32/gdkkeys-win32.c
+++ b/gdk/win32/gdkkeys-win32.c
@@ -156,6 +156,26 @@ handle_special (guint vk,
*ksymp = GDK_KP_Subtract; break;
case VK_DIVIDE:
*ksymp = GDK_KP_Divide; break;
+ case VK_NUMPAD0:
+ *ksymp = GDK_KP_0; break;
+ case VK_NUMPAD1:
+ *ksymp = GDK_KP_1; break;
+ case VK_NUMPAD2:
+ *ksymp = GDK_KP_2; break;
+ case VK_NUMPAD3:
+ *ksymp = GDK_KP_3; break;
+ case VK_NUMPAD4:
+ *ksymp = GDK_KP_4; break;
+ case VK_NUMPAD5:
+ *ksymp = GDK_KP_5; break;
+ case VK_NUMPAD6:
+ *ksymp = GDK_KP_6; break;
+ case VK_NUMPAD7:
+ *ksymp = GDK_KP_7; break;
+ case VK_NUMPAD8:
+ *ksymp = GDK_KP_8; break;
+ case VK_NUMPAD9:
+ *ksymp = GDK_KP_9; break;
case VK_F1:
*ksymp = GDK_F1; break;
case VK_F2: