diff options
| author | Paul Eggert | 2018-01-09 15:29:25 -0800 |
|---|---|---|
| committer | Paul Eggert | 2018-01-09 15:29:25 -0800 |
| commit | 646c8e56f8a11832f25523907b85d6522a99f361 (patch) | |
| tree | 80ffd41982cfa018b827304ec5137ae6025f6080 /src | |
| parent | 85f5ee14b55489845eaafbdf70d7f4e25ec44ed7 (diff) | |
| parent | d382d2bfc5072d4220b3e51785d22f70b147d63f (diff) | |
| download | emacs-646c8e56f8a11832f25523907b85d6522a99f361.tar.gz emacs-646c8e56f8a11832f25523907b85d6522a99f361.zip | |
Merge from origin/emacs-26
d382d2bfc5 * etc/DEBUG (Getting control to the debugger): Fix grammar.
687af4c8e8 * lisp/vc/vc.el (vc-region-history): log-view-vc-fileset h...
43e2aafae3 Don't bind dframe events on load (Bug#29599)
ab31bf3c5f * lisp/textmodes/picture.el (picture-mode-exit): Doc fix. ...
ed44d92fa6 * lisp/textmodes/picture.el (picture-open-line): Doc fix. ...
b87a772612 Fix description of 'emacs-internal'
a5256da588 Update PROBLEMS with selection-related issues
c59ecb005e New customization variable for python-mode indentation (Bu...
4e20c8f220 Fix menu keyboard shortcuts on macOS (Bug#29595)
# Conflicts:
# etc/NEWS
Diffstat (limited to 'src')
| -rw-r--r-- | src/nsmenu.m | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/src/nsmenu.m b/src/nsmenu.m index 5748b20ce81..58b45fb38e5 100644 --- a/src/nsmenu.m +++ b/src/nsmenu.m | |||
| @@ -643,14 +643,23 @@ x_activate_menubar (struct frame *f) | |||
| 643 | 643 | ||
| 644 | keyEq = [self parseKeyEquiv: wv->key]; | 644 | keyEq = [self parseKeyEquiv: wv->key]; |
| 645 | #ifdef NS_IMPL_COCOA | 645 | #ifdef NS_IMPL_COCOA |
| 646 | /* macOS just ignores modifier strings longer than one character */ | 646 | /* macOS mangles modifier strings longer than one character. */ |
| 647 | if (keyEquivModMask == 0) | 647 | if (keyEquivModMask == 0) |
| 648 | title = [title stringByAppendingFormat: @" (%@)", keyEq]; | 648 | { |
| 649 | title = [title stringByAppendingFormat: @" (%@)", keyEq]; | ||
| 650 | item = [self addItemWithTitle: (NSString *)title | ||
| 651 | action: @selector (menuDown:) | ||
| 652 | keyEquivalent: @""]; | ||
| 653 | } | ||
| 654 | else | ||
| 655 | { | ||
| 656 | #endif | ||
| 657 | item = [self addItemWithTitle: (NSString *)title | ||
| 658 | action: @selector (menuDown:) | ||
| 659 | keyEquivalent: keyEq]; | ||
| 660 | #ifdef NS_IMPL_COCOA | ||
| 661 | } | ||
| 649 | #endif | 662 | #endif |
| 650 | |||
| 651 | item = [self addItemWithTitle: (NSString *)title | ||
| 652 | action: @selector (menuDown:) | ||
| 653 | keyEquivalent: keyEq]; | ||
| 654 | [item setKeyEquivalentModifierMask: keyEquivModMask]; | 663 | [item setKeyEquivalentModifierMask: keyEquivModMask]; |
| 655 | 664 | ||
| 656 | [item setEnabled: wv->enabled]; | 665 | [item setEnabled: wv->enabled]; |