Skip to content

Commit

Permalink
Keyboard: detect tap if swipes are disabled (#11699)
Browse files Browse the repository at this point in the history
Discussed in #11668.
  • Loading branch information
hius07 committed Apr 24, 2024
1 parent caea0e8 commit f5be04a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/ui/widget/virtualkeyboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,9 @@ function VirtualKey:onHoldSelect()
end
function VirtualKey:onSwipeKey(arg, ges)
if G_reader_settings:isFalse("keyboard_swipes_enabled") then return true end
if G_reader_settings:isFalse("keyboard_swipes_enabled") then
return self:onTapSelect()
end
Device:performHapticFeedback("KEYBOARD_TAP")
if self.flash_keyboard then
self:invert(true)
Expand Down

0 comments on commit f5be04a

Please sign in to comment.