Date: Thu, 15 Feb 2018 18:16:16 +0000 (UTC) From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r329329 - head/stand/lua Message-ID: <201802151816.w1FIGGt8089377@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
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)
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201802151816.w1FIGGt8089377>