Bug 705181: Fix annoying beeping introduced by Mac IME

NSTextInputClient should not chain unhandled commands to super

(cherry picked from commit 91bcca6f39)
This commit is contained in:
Michael Hutchinson 2013-07-02 19:04:36 -04:00 committed by John Ralls
parent 0b8ef8f201
commit a78643bd6f

View File

@ -172,7 +172,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