diff options
author | 2012-10-16 13:06:55 -0400 | |
---|---|---|
committer | 2012-10-16 13:06:55 -0400 | |
commit | 1d394aca41cccce46f45110670eba0ec4004297b (patch) | |
tree | 4eab3542244d2c1a87f3f3db213c26c57c567776 /core | |
parent | a6d7c64d9ffaa987407a52f3e9b5c9c181e196a9 (diff) | |
download | textadept-1d394aca41cccce46f45110670eba0ec4004297b.tar.gz textadept-1d394aca41cccce46f45110670eba0ec4004297b.zip |
Fixed GUI menu key shortcut handling.
Diffstat (limited to 'core')
-rw-r--r-- | core/keys.lua | 5 |
1 files changed, 4 insertions, 1 deletions
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 |