aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--core/ext/keys.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/ext/keys.lua b/core/ext/keys.lua
index 00d5804f..7ac2e0b1 100644
--- a/core/ext/keys.lua
+++ b/core/ext/keys.lua
@@ -131,7 +131,7 @@ local function keypress(code, shift, control, alt)
if MAC and not shift and not control and not alt then
local ch = string.char(code)
-- work around native GTK-OSX's handling of Alt key
- if ch:match('[^A-Za-z ]') then
+ if ch:match('[^A-Za-z ]') and #keychain == 0 then
buffer:add_text(ch)
textadept.events.handle('char_added', ch)
return true