[gtk+] quartz: fix the mapping of GDK_KP_Enter in known_numeric_keys[]



commit d0af25f12c2c99ef0959ce19b1385a9f375ac19c
Author: Michael Natterer <mitch gimp org>
Date:   Tue Nov 20 19:10:06 2012 +0100

    quartz: fix the mapping of GDK_KP_Enter in known_numeric_keys[]
    
    so it will actually be used, instead of delivering GDK_Return
    when it should be GDK_KP_Enter.
    (cherry picked from commit 27f3fcf12c39d551532872cf26823993c93eb04d)

 gdk/quartz/gdkkeys-quartz.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gdk/quartz/gdkkeys-quartz.c b/gdk/quartz/gdkkeys-quartz.c
index c070560..a4df2cf 100644
--- a/gdk/quartz/gdkkeys-quartz.c
+++ b/gdk/quartz/gdkkeys-quartz.c
@@ -176,7 +176,7 @@ const static struct {
   { 67, GDK_KEY_asterisk, GDK_KEY_KP_Multiply },
   { 69, GDK_KEY_plus, GDK_KEY_KP_Add },
   { 75, GDK_KEY_slash, GDK_KEY_KP_Divide },
-  { 76, 0x01000003, GDK_KEY_KP_Enter },
+  { 76, GDK_KEY_Return, GDK_KEY_KP_Enter },
   { 78, GDK_KEY_minus, GDK_KEY_KP_Subtract },
   { 81, GDK_KEY_equal, GDK_KEY_KP_Equal },
   { 82, GDK_KEY_0, GDK_KEY_KP_0 },



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