don't pass through handled r-clicks

develop
Myk Taylor 2023-01-06 10:42:07 -08:00
parent f43358002d
commit fccefd1155
No known key found for this signature in database
GPG Key ID: 8A39CA0FA0C16E78
1 changed files with 3 additions and 0 deletions

@ -721,6 +721,9 @@ function ZScreen:onInput(keys)
end
if keys.LEAVESCREEN or keys._MOUSE_R_DOWN then
self:dismiss()
-- ensure underlying DF screens don't also react to the click
df.global.enabler.mouse_rbut_down = 0
df.global.enabler.mouse_rbut = 0
return
end