From 3baf23e863be873bd85cffe01bc3124adfa7ac3c Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 1 Feb 2010 15:50:03 -0500 Subject: Modified key commands to be more key-layout agnostic. --- core/ext/keys.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/ext/keys.lua') 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 -- cgit v1.2.3