2
0
mirror of https://github.com/koreader/koreader synced 2024-11-10 01:10:34 +00:00

Support 'Ctrl' shortcuts on hasKeyboard (#12347)

This commit is contained in:
David 2024-08-13 19:34:34 +01:00 committed by GitHub
parent 6eddc66516
commit f3c0af49c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 8 additions and 8 deletions

View File

@ -30,8 +30,8 @@ end
function FileSearcher:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowFileSearch = { { "Alt", "F" } }
self.key_events.ShowFileSearchBlank = { { "Alt", "Shift", "F" }, event = "ShowFileSearch", args = "" }
self.key_events.ShowFileSearch = { { "Alt", "F" }, { "Ctrl", "F" } }
self.key_events.ShowFileSearchBlank = { { "Alt", "Shift", "F" }, { "Ctrl", "Shift", "F" }, event = "ShowFileSearch", args = "" }
end
end

View File

@ -64,7 +64,7 @@ function ReaderBookmark:onGesture() end
function ReaderBookmark:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowBookmark = { { "B" } }
self.key_events.ShowBookmark = { { "B" }, { "Shift", "Left" } }
self.key_events.ToggleBookmark = { { "Shift", "Right" } }
elseif Device:hasScreenKB() then
self.key_events.ShowBookmark = { { "ScreenKB", "Left" } }

View File

@ -166,7 +166,7 @@ end
function ReaderDictionary:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowDictionaryLookup = { { "Alt", "D" } }
self.key_events.ShowDictionaryLookup = { { "Alt", "D" }, { "Ctrl", "D" } }
end
end

View File

@ -85,8 +85,8 @@ SRELL_ERROR_CODES[666] = _("Expression may lead to an extremely long search time
function ReaderSearch:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowFulltextSearchInputBlank = { { "Alt", "Shift", "S" }, event = "ShowFulltextSearchInput", args = "" }
self.key_events.ShowFulltextSearchInputRecent = { { "Alt", "S" }, event = "ShowFulltextSearchInput" }
self.key_events.ShowFulltextSearchInputBlank = { { "Alt", "Shift", "S" }, { "Ctrl", "Shift", "S" }, event = "ShowFulltextSearchInput", args = "" }
self.key_events.ShowFulltextSearchInputRecent = { { "Alt", "S" }, { "Ctrl", "S" }, event = "ShowFulltextSearchInput" }
end
end

View File

@ -63,7 +63,7 @@ function ReaderToc:registerKeyEvents()
if Device:hasScreenKB() then
self.key_events.ShowToc = { { "ScreenKB", "Up" } }
elseif Device:hasKeyboard() then
self.key_events.ShowToc = { { "T" } }
self.key_events.ShowToc = { { "T" }, { "Shift", "Up" } }
end
end

View File

@ -39,7 +39,7 @@ end
function ReaderWikipedia:registerKeyEvents()
if Device:hasKeyboard() then
self.key_events.ShowWikipediaLookup = { { "Alt", "W" } }
self.key_events.ShowWikipediaLookup = { { "Alt", "W" }, { "Ctrl", "W" } }
end
end