stand/lua: Exit sub-menus on backspace
This commit is contained in:
parent
0bab7fa8a7
commit
abc4f7e735
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=329274
@ -270,8 +270,14 @@ function menu.run(m)
|
||||
|
||||
cont = true;
|
||||
while cont do
|
||||
local key = string.char(io.getchar());
|
||||
local key = io.getchar();
|
||||
|
||||
-- Exit on backspace
|
||||
if (key == 127) and (m ~= menu.welcome) then
|
||||
break
|
||||
end
|
||||
|
||||
key = string.char(key)
|
||||
-- check to see if key is an alias
|
||||
local sel_entry = nil;
|
||||
for k, v in pairs(alias_table) do
|
||||
|
Loading…
Reference in New Issue
Block a user