feat: add power button short press for quick access to footnotes (#1658)

This commit is contained in:
Lorenzo Santini
2026-06-08 14:45:41 -04:00
committed by GitHub
parent 7f01eab62e
commit 9c12b90737
8 changed files with 63 additions and 7 deletions
@@ -26,7 +26,8 @@ void EpubReaderFootnotesActivity::loop() {
return;
}
if (mappedInput.wasReleased(MappedInputManager::Button::Confirm)) {
if (mappedInput.wasReleased(MappedInputManager::Button::Confirm) ||
mappedInput.wasReleased(MappedInputManager::Button::Power)) {
if (selectedIndex >= 0 && selectedIndex < static_cast<int>(footnotes.size())) {
setResult(FootnoteResult{footnotes[selectedIndex].href});
finish();