]> git.eshelyaron.com Git - emacs.git/commitdiff
* nsfns.m (handlePanelKeys): Don't process Command+Function keys.
authorJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Jun 2013 16:38:26 +0000 (18:38 +0200)
committerJan Djärv <jan.h.d@swipnet.se>
Sun, 30 Jun 2013 16:38:26 +0000 (18:38 +0200)
Let the super performKeyEquivalent deal with them.

Fixes: debbugs:14747
src/ChangeLog
src/nsfns.m

index 3aaa7b778e4c9feb9bb01ef9c8bfe41f62987190..9dc1b989e3f7e102d53528c3b3d906a8414ede36 100644 (file)
@@ -1,3 +1,8 @@
+2013-06-30  Jan Djärv  <jan.h.d@swipnet.se>
+
+       * nsfns.m (handlePanelKeys): Don't process Command+Function keys.
+       Let the super performKeyEquivalent deal with them (Bug#14747).
+
 2013-06-30  Paul Eggert  <eggert@cs.ucla.edu>
 
        * widget.c (resize_cb): Remove unused local.
index 943391831595c08e04226a1522d770f320569af0..1e075995c11e0bb47174f6228e526b33a17c2899 100644 (file)
@@ -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