dbg/input fix

This commit is contained in:
p.kosyh 2010-06-14 13:01:19 +00:00
parent 43238dc299
commit 0ee9424283
2 changed files with 7 additions and 4 deletions

View file

@ -2,7 +2,6 @@
-- in your project -- in your project
-- for debug tools -- for debug tools
require "input" require "input"
input.kbd_alt = true
execute_cmd = room { execute_cmd = room {
nam = "Execute Lua code", nam = "Execute Lua code",
debug = true, debug = true,
@ -18,7 +17,11 @@ execute_cmd = room {
end end
return back(); return back();
end, end,
obj = { inp('{Enter cmd}:', 'return "Hello World!"'), vway('Back', '^{Back}', 'debug_dlg')} act = function(s, w)
return back();
end,
obj = { inp('{Enter cmd}:', 'return "Hello World!"'),
vobj(1, 'Back', '^{Back}')}
} }
choose_location = dlg { choose_location = dlg {

View file

@ -173,9 +173,9 @@ function kbdxlat(s)
end end
if input.kbd_alt then if input.kbd_alt then
kbd = kbden; kbd = kbdru;
else else
kbd = kbdru kbd = kbden
end end
if kbd and input.kbd_shift then if kbd and input.kbd_shift then