inputdialog(feat): add is_enter_default attribute to buttons

This commit is contained in:
Qingping Hou
2016-05-25 23:09:49 -07:00
parent 60587e08c6
commit 476e35708d
8 changed files with 44 additions and 32 deletions

View File

@@ -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)