From: Jan Djärv Date: Sun, 30 Jun 2013 16:38:26 +0000 (+0200) Subject: * nsfns.m (handlePanelKeys): Don't process Command+Function keys. X-Git-Tag: emacs-24.3.90~173^2^2~42^2~45^2~387^2~1974 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=9d3f2fc2866c3e39c668eeb36078f7f8f9b6dba9;p=emacs.git * nsfns.m (handlePanelKeys): Don't process Command+Function keys. Let the super performKeyEquivalent deal with them. Fixes: debbugs:14747 --- diff --git a/src/ChangeLog b/src/ChangeLog index 3aaa7b778e4..9dc1b989e3f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2013-06-30 Jan Djärv + + * nsfns.m (handlePanelKeys): Don't process Command+Function keys. + Let the super performKeyEquivalent deal with them (Bug#14747). + 2013-06-30 Paul Eggert * widget.c (resize_cb): Remove unused local. diff --git a/src/nsfns.m b/src/nsfns.m index 94339183159..1e075995c11 100644 --- a/src/nsfns.m +++ b/src/nsfns.m @@ -2705,8 +2705,14 @@ handlePanelKeys (NSSavePanel *panel, NSEvent *theEvent) case NSPageUpFunctionKey: case NSPageDownFunctionKey: case NSEndFunctionKey: - [panel sendEvent: theEvent]; - ret = YES; + /* Don't send command modified keys, as those are handled in the + performKeyEquivalent method of the super class. + */ + if (! ([theEvent modifierFlags] & NSCommandKeyMask)) + { + [panel sendEvent: theEvent]; + ret = YES; + } break; /* As we don't have the standard key commands for copy/paste/cut/select-all in our edit menu, we must handle