diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2012-08-30 12:58:12 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2012-08-30 12:58:12 -0400 |
commit | 0bd339ff2629e8bb6f4825527162e892057a5929 (patch) | |
tree | 1e9cd837b7e492e1b0a61d58662335af3258834b | |
parent | 53612e2d413f6abba9991f07a7f11385c6880452 (diff) |
Show key shortcuts in ncurses `select_command()`; modules/textadept/menu.lua
-rw-r--r-- | modules/textadept/menu.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/modules/textadept/menu.lua b/modules/textadept/menu.lua index 68b49066..20737b51 100644 --- a/modules/textadept/menu.lua +++ b/modules/textadept/menu.lua @@ -278,6 +278,7 @@ end function M.set_menubar(menubar) key_shortcuts = {} for key, f in pairs(keys) do key_shortcuts[get_id(f)] = key end + if NCURSES then return end -- only wanted to populate key_shortcuts menu_actions = {} local _menubar = {} for i = 1, #menubar do @@ -285,7 +286,7 @@ function M.set_menubar(menubar) end gui.menubar = _menubar end -if not NCURSES then M.set_menubar(M.menubar) end +M.set_menubar(M.menubar) --- -- Sets `gui.context_menu` from the given menu table. |