diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-03-18 18:52:32 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2009-03-18 18:52:32 -0400 |
commit | 1a02b8efbdd6013935ebaaf315546547525a99ec (patch) | |
tree | bc7b0eed9c8abde2c4fdaf99e459b4e1efda5989 | |
parent | 98d193eaad207c87416f364592693872c98ddc78 (diff) |
Fixed a block character insertion issue on GTK-OSX; core/ext/keys.lua
-rw-r--r-- | core/ext/keys.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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) |