Skip to content

Commit

Permalink
rebirth chart preview enabled by right click without holding shift
Browse files Browse the repository at this point in the history
  • Loading branch information
poco0317 committed May 1, 2024
1 parent f8c38d5 commit 8ac47ad
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,8 @@ t[#t+1] = Def.ActorFrame {
-- rightframe owns generalbox - owns general owns chart preview
-- this should work based on the actor tree that exists
-- if it fails, probably nothing was there to receive the message or the tree is bad
if SCUFF.generaltab == SCUFF.generaltabindex and focused and params.event == "DeviceButton_left mouse button" then
if SCUFF.generaltab == SCUFF.generaltabindex and focused and
(params.event == "DeviceButton_left mouse button" or (params.event == "DeviceButton_right mouse button" and not INPUTFILTER:IsControlPressed())) then
SCUFF.preview.active = not SCUFF.preview.active
MESSAGEMAN:Broadcast("ChartPreviewToggle")
elseif params.event == "DeviceButton_right mouse button" and INPUTFILTER:IsControlPressed() then
Expand Down

0 comments on commit 8ac47ad

Please sign in to comment.