Numeric keypad on win32 (GTK 2.6.9)



I've seen that events from numeric keypad are different in win32 and unix.

If "num lock" is selected the linux port give the events:

GDK_KP_0 .. GDK_KP_9

while the win32 version gives GDK_0 .. GDK_9.

Looking at the sourcecode it seems that in:

gdk/win32/gdkkeys-win32.c in the function handle_special() the appropriate VK_NUMPAD_* codes are not converted as they should to GDK_KP_* events.

Is this wanted? Can I submit a patch to fix this behaviour?

It causes a lot of problems in my application since actually I see no way to check the difference between "1" on the main keyboard and "1" on the numeric pad (that in my application on unix and osx have very different meanings).

Bye,
 Gabry






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]