From 1d394aca41cccce46f45110670eba0ec4004297b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 16 Oct 2012 13:06:55 -0400 Subject: Fixed GUI menu key shortcut handling. --- core/keys.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'core/keys.lua') diff --git a/core/keys.lua b/core/keys.lua index 40502501..88ee1165 100644 --- a/core/keys.lua +++ b/core/keys.lua @@ -275,7 +275,10 @@ local function get_gdk_key(key_seq) local byte = string_byte(key) if #key > 1 or byte < 32 then for i, s in pairs(M.KEYSYMS) do - if s == key and i ~= 0xFE20 then byte = i break end + if s == key and i ~= 0xFE20 and (i > 0xFE20 or NCURSES) then + byte = i + break + end end end return byte, modifiers -- cgit v1.2.3