]> git.eshelyaron.com Git - emacs.git/commit
More readable keys in NS menu entries (bug#45502)
authorMattias Engdegård <mattiase@acm.org>
Mon, 28 Dec 2020 14:24:08 +0000 (15:24 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 29 Dec 2020 16:34:53 +0000 (17:34 +0100)
commitb5ada7f9afc157cce2d58ad157841b65b2450fb9
tree1c433453238d0dd862122439fa7baa839a363e74
parent7fbcca29b883e68b7a92d4bc706aa0a0bd19b5a4
More readable keys in NS menu entries (bug#45502)

Each menu entry now has the key binding in a right-aligned column, as
an attempt to improve readability.  Previously the keys were given in
brackets immediately following the menu string.

* src/nsmenu.m ([EmacsMenu parseKeyEquiv:]): Remove.
(skipspc): New helper function.
([EmacsMenu addItemWithWidgetValue:]): Add attributes argument.
Use attributed title string.  Don't special-case Super bindings.
([EmacsMenu fillWithWidgetValue:]): Compute maximum width.  Prepare
attributes for title.
src/nsmenu.m
src/nsterm.h