* 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 3aaa7b7..9dc1b98 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 9433918..1e07599 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