From 63a667bbbc62e53c5de1a63f0d4b1b585e0072f7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sun, 14 Dec 2008 14:18:37 -0500 Subject: Fixed key commands bug for Mac; core/ext/keys.lua --- core/ext/keys.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/ext/keys.lua') 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 -- cgit v1.2.3