aboutsummaryrefslogtreecommitdiff
path: root/core/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-10-30 10:30:53 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2012-10-30 10:30:53 -0400
commita8b2b4e85ab241e20ce8f55d4c871a8653d435f7 (patch)
treef302e4bc11c870bfdbc7e2698487cc5ec784c112 /core/keys.lua
parent438f2e7ebbadcd8123c203edc507e9f11b54a6e2 (diff)
downloadtextadept-a8b2b4e85ab241e20ce8f55d4c871a8653d435f7.tar.gz
textadept-a8b2b4e85ab241e20ce8f55d4c871a8653d435f7.zip
Pass "Escape" key to Scintilla correctly in ncurses.
Diffstat (limited to 'core/keys.lua')
-rw-r--r--core/keys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/keys.lua b/core/keys.lua
index 6d5efa93..e3ed5d73 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -224,7 +224,7 @@ local function keypress(code, shift, control, alt, meta)
local key
--print(code, M.KEYSYMS[code], shift, control, alt, meta)
if code < 256 then
- key = string_char(code)
+ key = (not NCURSES or code ~= 7) and string_char(code) or 'esc'
shift = shift and code < 32 -- for printable characters, key is upper case
else
key = M.KEYSYMS[code]