Make rightAlt only close menu, never open it. (#672)

Fixes #669
This commit is contained in:
Wojbie 2021-01-11 22:59:29 +01:00 committed by GitHub
parent b838efedd2
commit 1f84480a80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 7 additions and 2 deletions

View File

@ -687,7 +687,7 @@ while bRunning do
end
elseif param == keys.leftCtrl or param == keys.rightCtrl or param == keys.rightAlt then
elseif param == keys.leftCtrl or param == keys.rightCtrl then
-- Menu toggle
bMenu = not bMenu
if bMenu then
@ -696,7 +696,12 @@ while bRunning do
term.setCursorBlink(true)
end
redrawMenu()
elseif param == keys.rightAlt then
if bMenu then
bMenu = false
term.setCursorBlink(true)
redrawMenu()
end
end
elseif sEvent == "char" then