mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
[fix, UX] Ignore first hold release when keyboard opened with hold (#5011)
Fixes #4902.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user