Skip to content

Commit

Permalink
allow children of PopupDialogs to process input events first (#7655)
Browse files Browse the repository at this point in the history
  • Loading branch information
trimbe authored Jul 7, 2024
1 parent 8c3208f commit 5c2dd5a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Classes/PopupDialog.lua
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function PopupDialogClass:Draw(viewPort)
end

function PopupDialogClass:ProcessInput(inputEvents, viewPort)
self:ProcessControlsInput(inputEvents, viewPort)
for id, event in ipairs(inputEvents) do
if event.type == "KeyDown" then
if event.key == "ESCAPE" then
Expand All @@ -83,5 +84,4 @@ function PopupDialogClass:ProcessInput(inputEvents, viewPort)
end
end
end
self:ProcessControlsInput(inputEvents, viewPort)
end

0 comments on commit 5c2dd5a

Please sign in to comment.