diff options
| author | Jan Djärv | 2013-06-30 18:38:26 +0200 |
|---|---|---|
| committer | Jan Djärv | 2013-06-30 18:38:26 +0200 |
| commit | 9d3f2fc2866c3e39c668eeb36078f7f8f9b6dba9 (patch) | |
| tree | 6e5903b38b783f9d0aa82fd6c42ee652e9bfb1c3 /src | |
| parent | 1d71c1d9dea59dde3b7a868f427226fb61132dfb (diff) | |
| download | emacs-9d3f2fc2866c3e39c668eeb36078f7f8f9b6dba9.tar.gz emacs-9d3f2fc2866c3e39c668eeb36078f7f8f9b6dba9.zip | |
* nsfns.m (handlePanelKeys): Don't process Command+Function keys.
Let the super performKeyEquivalent deal with them.
Fixes: debbugs:14747
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/nsfns.m | 10 |
2 files changed, 13 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 3aaa7b778e4..9dc1b989e3f 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2013-06-30 Jan Djärv <jan.h.d@swipnet.se> | ||
| 2 | |||
| 3 | * nsfns.m (handlePanelKeys): Don't process Command+Function keys. | ||
| 4 | Let the super performKeyEquivalent deal with them (Bug#14747). | ||
| 5 | |||
| 1 | 2013-06-30 Paul Eggert <eggert@cs.ucla.edu> | 6 | 2013-06-30 Paul Eggert <eggert@cs.ucla.edu> |
| 2 | 7 | ||
| 3 | * widget.c (resize_cb): Remove unused local. | 8 | * 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) | |||
| 2705 | case NSPageUpFunctionKey: | 2705 | case NSPageUpFunctionKey: |
| 2706 | case NSPageDownFunctionKey: | 2706 | case NSPageDownFunctionKey: |
| 2707 | case NSEndFunctionKey: | 2707 | case NSEndFunctionKey: |
| 2708 | [panel sendEvent: theEvent]; | 2708 | /* Don't send command modified keys, as those are handled in the |
| 2709 | ret = YES; | 2709 | performKeyEquivalent method of the super class. |
| 2710 | */ | ||
| 2711 | if (! ([theEvent modifierFlags] & NSCommandKeyMask)) | ||
| 2712 | { | ||
| 2713 | [panel sendEvent: theEvent]; | ||
| 2714 | ret = YES; | ||
| 2715 | } | ||
| 2710 | break; | 2716 | break; |
| 2711 | /* As we don't have the standard key commands for | 2717 | /* As we don't have the standard key commands for |
| 2712 | copy/paste/cut/select-all in our edit menu, we must handle | 2718 | copy/paste/cut/select-all in our edit menu, we must handle |