hotkeys key0 is 10

This commit is contained in:
p.kosyh 2010-07-26 19:29:08 +00:00
parent 9b52694520
commit 6b0c8166c1

View file

@ -7,6 +7,7 @@ end)
game.kbd = stead.hook(game.kbd, function(f, s, down, key, ...)
if down and key >= '0' and key <= '9' then
if isDialog(here()) then
if key == '0' then key = '10' end
local p = seen(key);
if p then
return call(p, 'act');