Bug 2050 Numpad Enter doesn't interpret as an Enter until you close then
open again

What this does:
In ev_UnixKeyboard.cpp, s_mapVirtualKeyCodeToNVK was already
set to map GDK_KP_Enter to EV_NVK_RETURN, but on line 443
s_isVirtualKeyCode was calling it a non-virtual key so the
fuction to do the actual mapping was never called. This 
fix corrects that.

-
Rob Altenburg

Index: abi/src/af/ev/unix/ev_UnixKeyboard.cpp
===================================================================
RCS file: /cvsroot/abi/src/af/ev/unix/ev_UnixKeyboard.cpp,v
retrieving revision 1.38
diff -r1.38 ev_UnixKeyboard.cpp
71,72c71
< bool ev_UnixKeyboard::keyPressEvent(AV_View* pView,
<                                                                          
GdkEventKey* e)
---
> bool ev_UnixKeyboard::keyPressEvent(AV_View* pView, GdkEventKey* e)
444c443
<       if (keyval >= GDK_KP_Space && keyval <= GDK_KP_9) // number pad keys
---
>       if (keyval >= GDK_KP_Space && keyval <= GDK_KP_9 && keyval != GDK_KP_Enter) // 
>number pad keys

Reply via email to