From 1a02b8efbdd6013935ebaaf315546547525a99ec Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 18 Mar 2009 18:52:32 -0400 Subject: Fixed a block character insertion issue on GTK-OSX; 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 2fb61ab3..dd314375 100644 --- a/core/ext/keys.lua +++ b/core/ext/keys.lua @@ -154,7 +154,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:find('[^A-Za-z ]') and #keychain == 0 then + if ch:find('[%p%d]') and #keychain == 0 then if buffer.anchor ~= buffer.current_pos then buffer:delete_back() end buffer:add_text(ch) textadept.events.handle('char_added', ch) -- cgit v1.2.3