hotkeys key0 is 10
This commit is contained in:
parent
9b52694520
commit
6b0c8166c1
|
@ -7,6 +7,7 @@ end)
|
||||||
game.kbd = stead.hook(game.kbd, function(f, s, down, key, ...)
|
game.kbd = stead.hook(game.kbd, function(f, s, down, key, ...)
|
||||||
if down and key >= '0' and key <= '9' then
|
if down and key >= '0' and key <= '9' then
|
||||||
if isDialog(here()) then
|
if isDialog(here()) then
|
||||||
|
if key == '0' then key = '10' end
|
||||||
local p = seen(key);
|
local p = seen(key);
|
||||||
if p then
|
if p then
|
||||||
return call(p, 'act');
|
return call(p, 'act');
|
||||||
|
|
Loading…
Reference in a new issue