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)
This commit is contained in:
Tor Lillqvist 2006-04-19 09:42:06 +00:00 committed by Tor Lillqvist
parent 31cb2ead9e
commit 8ae3fade37
3 changed files with 30 additions and 0 deletions

View File

@ -1,3 +1,8 @@
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)
2006-04-18 Matthias Clasen <mclasen@redhat.com> 2006-04-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than * gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than

View File

@ -1,3 +1,8 @@
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)
2006-04-18 Matthias Clasen <mclasen@redhat.com> 2006-04-18 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than * gtk/gtkrc.c: Allocate pixmap_path dynamically, rather than

View File

@ -156,6 +156,26 @@ handle_special (guint vk,
*ksymp = GDK_KP_Subtract; break; *ksymp = GDK_KP_Subtract; break;
case VK_DIVIDE: case VK_DIVIDE:
*ksymp = GDK_KP_Divide; break; *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: case VK_F1:
*ksymp = GDK_F1; break; *ksymp = GDK_F1; break;
case VK_F2: case VK_F2: