mirror of
https://github.com/koreader/koreader.git
synced 2026-11-30 01:08:07 +00:00
ReaderKeySelection: clear highlight indicator during keyboard connection/disconnection
This commit is contained in:
1 parent
d90fc1ce1b
commit
4e973dacb0
1 file changed
+11
-1
@@ -210,7 +210,17 @@ function ReaderKeySelection:registerKeyEvents()
|
||||
end
|
||||
end
|
||||
ReaderKeySelection.onRegisterDPadEvents = ReaderKeySelection.registerKeyEvents
|
||||
ReaderKeySelection.onPhysicalKeyboardConnected = ReaderKeySelection.init
|
||||
|
||||
function ReaderKeySelection:onPhysicalKeyboardConnected()
|
||||
self:stopHighlightIndicator(true)
|
||||
self:init()
|
||||
end
|
||||
|
||||
function ReaderKeySelection:onPhysicalKeyboardDisconnected()
|
||||
-- A dropped connection leaves the overlay up and
|
||||
-- unreachable even on further connections.
|
||||
self:stopHighlightIndicator(true)
|
||||
end
|
||||
|
||||
function ReaderKeySelection:addToMainMenu(menu_items)
|
||||
if not Device:useDPadAsActionKeys() and not Device:isTouchDevice() then
|
||||
|
||||
Reference in new issue
Block a user