1
0
mirror of https://github.com/SquidDev-CC/CC-Tweaked synced 2025-09-11 23:05:59 +00:00

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 Jummit
parent e12ce95b2d
commit df40adce20
2 changed files with 15 additions and 3 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