multiinputdialog: remove duplicated focus restoring

reviewable/pr11832/r1
hius07 3 weeks ago committed by GitHub
parent a40f7c172d
commit 80c1557f23
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -239,9 +239,8 @@ function MultiInputDialog:onKeyboardHeightChanged()
self._input_widget:onCloseWidget() -- proper cleanup of InputText and its keyboard
self:free()
self.keyboard_visible = visible
for i, field in ipairs(self.fields) do -- restore entered text and focused field
for i, field in ipairs(self.fields) do -- restore entered text
field.text = fields[i].text
field.focused = i == self.focused_field_idx
end
self:init()
if self.keyboard_visible then

Loading…
Cancel
Save