mirror of
https://github.com/koreader/koreader.git
synced 2025-12-13 20:36:53 +01:00
inputdialog(feat): add is_enter_default attribute to buttons
This commit is contained in:
@@ -534,6 +534,7 @@ function BookStatusWidget:onSwitchFocus(inputbox)
|
||||
},
|
||||
{
|
||||
text = _("OK"),
|
||||
is_enter_default = true,
|
||||
callback = function()
|
||||
self.input_note:setText(self.note_dialog:getInputText())
|
||||
self:closeInputDialog()
|
||||
@@ -542,9 +543,6 @@ function BookStatusWidget:onSwitchFocus(inputbox)
|
||||
},
|
||||
},
|
||||
},
|
||||
enter_callback = function()
|
||||
self:closeInputDialog()
|
||||
end,
|
||||
}
|
||||
self.note_dialog:onShowKeyboard()
|
||||
UIManager:show(self.note_dialog)
|
||||
|
||||
Reference in New Issue
Block a user