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:
parent
6eddc66516
commit
f3c0af49c2
@ -30,8 +30,8 @@ end
|
|||||||
|
|
||||||
function FileSearcher:registerKeyEvents()
|
function FileSearcher:registerKeyEvents()
|
||||||
if Device:hasKeyboard() then
|
if Device:hasKeyboard() then
|
||||||
self.key_events.ShowFileSearch = { { "Alt", "F" } }
|
self.key_events.ShowFileSearch = { { "Alt", "F" }, { "Ctrl", "F" } }
|
||||||
self.key_events.ShowFileSearchBlank = { { "Alt", "Shift", "F" }, event = "ShowFileSearch", args = "" }
|
self.key_events.ShowFileSearchBlank = { { "Alt", "Shift", "F" }, { "Ctrl", "Shift", "F" }, event = "ShowFileSearch", args = "" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ function ReaderBookmark:onGesture() end
|
|||||||
|
|
||||||
function ReaderBookmark:registerKeyEvents()
|
function ReaderBookmark:registerKeyEvents()
|
||||||
if Device:hasKeyboard() then
|
if Device:hasKeyboard() then
|
||||||
self.key_events.ShowBookmark = { { "B" } }
|
self.key_events.ShowBookmark = { { "B" }, { "Shift", "Left" } }
|
||||||
self.key_events.ToggleBookmark = { { "Shift", "Right" } }
|
self.key_events.ToggleBookmark = { { "Shift", "Right" } }
|
||||||
elseif Device:hasScreenKB() then
|
elseif Device:hasScreenKB() then
|
||||||
self.key_events.ShowBookmark = { { "ScreenKB", "Left" } }
|
self.key_events.ShowBookmark = { { "ScreenKB", "Left" } }
|
||||||
|
@ -166,7 +166,7 @@ end
|
|||||||
|
|
||||||
function ReaderDictionary:registerKeyEvents()
|
function ReaderDictionary:registerKeyEvents()
|
||||||
if Device:hasKeyboard() then
|
if Device:hasKeyboard() then
|
||||||
self.key_events.ShowDictionaryLookup = { { "Alt", "D" } }
|
self.key_events.ShowDictionaryLookup = { { "Alt", "D" }, { "Ctrl", "D" } }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -85,8 +85,8 @@ SRELL_ERROR_CODES[666] = _("Expression may lead to an extremely long search time
|
|||||||
|
|
||||||
function ReaderSearch:registerKeyEvents()
|
function ReaderSearch:registerKeyEvents()
|
||||||
if Device:hasKeyboard() then
|
if Device:hasKeyboard() then
|
||||||
self.key_events.ShowFulltextSearchInputBlank = { { "Alt", "Shift", "S" }, event = "ShowFulltextSearchInput", args = "" }
|
self.key_events.ShowFulltextSearchInputBlank = { { "Alt", "Shift", "S" }, { "Ctrl", "Shift", "S" }, event = "ShowFulltextSearchInput", args = "" }
|
||||||
self.key_events.ShowFulltextSearchInputRecent = { { "Alt", "S" }, event = "ShowFulltextSearchInput" }
|
self.key_events.ShowFulltextSearchInputRecent = { { "Alt", "S" }, { "Ctrl", "S" }, event = "ShowFulltextSearchInput" }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -63,7 +63,7 @@ function ReaderToc:registerKeyEvents()
|
|||||||
if Device:hasScreenKB() then
|
if Device:hasScreenKB() then
|
||||||
self.key_events.ShowToc = { { "ScreenKB", "Up" } }
|
self.key_events.ShowToc = { { "ScreenKB", "Up" } }
|
||||||
elseif Device:hasKeyboard() then
|
elseif Device:hasKeyboard() then
|
||||||
self.key_events.ShowToc = { { "T" } }
|
self.key_events.ShowToc = { { "T" }, { "Shift", "Up" } }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -39,7 +39,7 @@ end
|
|||||||
|
|
||||||
function ReaderWikipedia:registerKeyEvents()
|
function ReaderWikipedia:registerKeyEvents()
|
||||||
if Device:hasKeyboard() then
|
if Device:hasKeyboard() then
|
||||||
self.key_events.ShowWikipediaLookup = { { "Alt", "W" } }
|
self.key_events.ShowWikipediaLookup = { { "Alt", "W" }, { "Ctrl", "W" } }
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user