update enabler mouse state when mouse clicks are handled in dialogs

develop
Myk Taylor 2023-09-30 23:54:25 -07:00
parent 6e2adaa3a9
commit cd12e41fd7
No known key found for this signature in database
1 changed files with 12 additions and 3 deletions

@ -67,7 +67,10 @@ function MessageBox:onInput(keys)
gui.markMouseClicksHandled(keys)
return true
end
return self:inputToSubviews(keys)
if self:inputToSubviews(keys) then
gui.markMouseClicksHandled(keys)
return true
end
end
function showMessage(title, text, tcolor, on_close)
@ -137,7 +140,10 @@ function InputBox:onInput(keys)
gui.markMouseClicksHandled(keys)
return true
end
return self:inputToSubviews(keys)
if self:inputToSubviews(keys) then
gui.markMouseClicksHandled(keys)
return true
end
end
function showInputPrompt(title, text, tcolor, input, on_input, on_cancel, min_width)
@ -239,7 +245,10 @@ function ListBox:onInput(keys)
gui.markMouseClicksHandled(keys)
return true
end
return self:inputToSubviews(keys)
if self:inputToSubviews(keys) then
gui.markMouseClicksHandled(keys)
return true
end
end
function showListPrompt(title, text, tcolor, choices, on_select, on_cancel, min_width, filter)