[gtk+/gtk-3-8] Bug 705181 Annoying beep on arrow keys



commit 4ded4549f12339508d978f0f0de87071c22b90f1
Author: Ek Kato <ek kato gmail com>
Date:   Tue Aug 13 11:14:29 2013 -0700

    Bug 705181 Annoying beep on arrow keys
    
    Original patch was a bit excessive, just needed to not forward the command.
    
    (cherry picked from commit 40c429c2cbe20f5a471b6594bd0bd163e78628b6)

 gdk/quartz/GdkQuartzView.c |    7 ++-----
 1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gdk/quartz/GdkQuartzView.c b/gdk/quartz/GdkQuartzView.c
index 6bc3afe..1d125d3 100644
--- a/gdk/quartz/GdkQuartzView.c
+++ b/gdk/quartz/GdkQuartzView.c
@@ -172,11 +172,8 @@
 -(void)doCommandBySelector: (SEL)aSelector
 {
   GDK_NOTE (EVENTS, g_print ("doCommandBySelector\n"));
-  /* Do nothing. Although we are required to implement this method for
-   * NSTextInputClient, we do not handle Cocoa command IDs, and the
-   * Apple docs explicitly say not to forward unhandled commands up
-   * the NSReponder chain, which calls NSBeep().
-  */
+  if ([self respondsToSelector: aSelector])
+    [self performSelector: aSelector];
 }
 
 -(void)insertText: (id)aString replacementRange: (NSRange)replacementRange


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