ReaderKeySelection: clear highlight indicator during keyboard connection/disconnection

This commit is contained in:
Commodore64user authored and David committed 2026-11-17 00:41:57 +00:00
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