svn commit: r329329 - head/stand/lua
Kyle Evans
kevans at FreeBSD.org
Thu Feb 15 18:16:17 UTC 2018
Author: kevans
Date: Thu Feb 15 18:16:16 2018
New Revision: 329329
URL: https://svnweb.freebsd.org/changeset/base/329329
Log:
stand/lua: Always boot on 'enter' keypress in menus
Modified:
head/stand/lua/menu.lua
Modified: head/stand/lua/menu.lua
==============================================================================
--- head/stand/lua/menu.lua Thu Feb 15 17:58:51 2018 (r329328)
+++ head/stand/lua/menu.lua Thu Feb 15 18:16:16 2018 (r329329)
@@ -152,7 +152,7 @@ menu.welcome = {
core.setSingleUser(false);
core.boot();
end,
- alias = {"b", "B", "\013"}
+ alias = {"b", "B"}
},
-- boot single user
@@ -272,9 +272,12 @@ function menu.run(m)
while cont do
local key = io.getchar();
- -- Exit on backspace
+ -- Special key behaviors
if (key == 127) and (m ~= menu.welcome) then
break
+ elseif (key == 13) then
+ core.boot();
+ -- Should not return
end
key = string.char(key)
More information about the svn-src-all
mailing list