[fix, UX] Ignore first hold release when keyboard opened with hold (#5011)

Fixes #4902.
This commit is contained in:
Frans de Jonge
2019-05-08 10:13:44 +02:00
committed by GitHub
parent 1b24582a08
commit 2968f558eb
5 changed files with 25 additions and 9 deletions

View File

@@ -240,9 +240,9 @@ function Button:onHoldSelectButton()
if self.enabled and self.hold_callback then
self.hold_callback()
elseif self.hold_input then
self:onInput(self.hold_input)
self:onInput(self.hold_input, true)
elseif type(self.hold_input_func) == "function" then
self:onInput(self.hold_input_func())
self:onInput(self.hold_input_func(), true)
end
return true
end