Support 'Ctrl' shortcuts on hasKeyboard (#12347)

reviewable/pr12351/r1
David 1 month ago committed by GitHub
parent 6eddc66516
commit f3c0af49c2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -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

@ -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" } }

@ -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

@ -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

@ -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

@ -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

Loading…
Cancel
Save