aboutsummaryrefslogtreecommitdiff
path: root/core/ext/keys.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2010-02-01 15:50:03 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2010-02-01 15:50:03 -0500
commit3baf23e863be873bd85cffe01bc3124adfa7ac3c (patch)
tree9b96851267709e6607602a230dc76c7bc62b126c /core/ext/keys.lua
parentc44a5b9e336368b25c0cf2d42d2a6bb03cf1e842 (diff)
downloadtextadept-3baf23e863be873bd85cffe01bc3124adfa7ac3c.tar.gz
textadept-3baf23e863be873bd85cffe01bc3124adfa7ac3c.zip
Modified key commands to be more key-layout agnostic.
Diffstat (limited to 'core/ext/keys.lua')
-rw-r--r--core/ext/keys.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ext/keys.lua b/core/ext/keys.lua
index a2509c6c..72e9294c 100644
--- a/core/ext/keys.lua
+++ b/core/ext/keys.lua
@@ -95,7 +95,8 @@ local function keypress(code, shift, control, alt)
local key
--print(code, string.char(code))
if code < 256 then
- key = string_char(code):lower()
+ key = string_char(code)
+ shift = false -- for printable characters, key is upper case
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