ensure modal dialogs behave like modal dialogs

that is, don't let clicks and keys propagate to parent screens
develop
Myk Taylor 2023-10-15 23:30:43 -07:00
parent d38545032c
commit 8d4d8f227d
No known key found for this signature in database
3 changed files with 9 additions and 4 deletions

@ -268,6 +268,7 @@ function BuildingDialog:onInput(keys)
return true
end
self:inputToSubviews(keys)
return true
end
function showBuildingPrompt(title, prompt, on_select, on_cancel, build_filter)

@ -66,7 +66,8 @@ function MessageBox:onInput(keys)
end
return true
end
return self:inputToSubviews(keys)
self:inputToSubviews(keys)
return true
end
function showMessage(title, text, tcolor, on_close)
@ -135,7 +136,8 @@ function InputBox:onInput(keys)
end
return true
end
return self:inputToSubviews(keys)
self:inputToSubviews(keys)
return true
end
function showInputPrompt(title, text, tcolor, input, on_input, on_cancel, min_width)
@ -236,7 +238,8 @@ function ListBox:onInput(keys)
end
return true
end
return self:inputToSubviews(keys)
self:inputToSubviews(keys)
return true
end
function showListPrompt(title, text, tcolor, choices, on_select, on_cancel, min_width, filter)

@ -265,7 +265,8 @@ function MaterialDialog:onInput(keys)
end
return true
end
return self:inputToSubviews(keys)
self:inputToSubviews(keys)
return true
end
function showMaterialPrompt(title, prompt, on_select, on_cancel, mat_filter)