diff options
author | Jan Djärv <jan.h.d@swipnet.se> | 2013-06-30 18:38:26 +0200 |
---|---|---|
committer | Jan Djärv <jan.h.d@swipnet.se> | 2013-06-30 18:38:26 +0200 |
commit | 9d3f2fc2866c3e39c668eeb36078f7f8f9b6dba9 (patch) | |
tree | 6e5903b38b783f9d0aa82fd6c42ee652e9bfb1c3 /src/nsfns.m | |
parent | 1d71c1d9dea59dde3b7a868f427226fb61132dfb (diff) | |
download | emacs-9d3f2fc2866c3e39c668eeb36078f7f8f9b6dba9.tar.gz |
* nsfns.m (handlePanelKeys): Don't process Command+Function keys.
Let the super performKeyEquivalent deal with them.
Fixes: debbugs:14747
Diffstat (limited to 'src/nsfns.m')
-rw-r--r-- | src/nsfns.m | 10 |
1 files changed, 8 insertions, 2 deletions
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 |