Bug 705181: Fix annoying beeping introduced by Mac IME

NSTextInputClient should not chain unhandled commands to super
This commit is contained in:
Michael Hutchinson 2013-07-02 19:04:36 -04:00 committed by John Ralls
parent 4ecbef0791
commit 91bcca6f39

View File

@ -175,7 +175,11 @@
-(void)doCommandBySelector: (SEL)aSelector
{
GDK_NOTE (EVENTS, g_print ("doCommandBySelector\n"));
[super doCommandBySelector: aSelector];
/* 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().
*/
}
-(void)insertText: (id)aString replacementRange: (NSRange)replacementRange