mirror of
https://github.com/koreader/koreader
synced 2024-11-10 01:10:34 +00:00
Minor keyboard corrections (#12372)
This commit is contained in:
parent
ab47bd10a4
commit
698fc35c3f
@ -222,7 +222,7 @@ function InputDialog:init()
|
||||
if self.fullscreen or self.add_nav_bar then
|
||||
self.deny_keyboard_hiding = true
|
||||
end
|
||||
if (Device:hasKeyboard() or Device:hasScreenKB()) and G_reader_settings:isFalse("virtual_keyboard_enabled") then
|
||||
if (Device:hasKeyboard() or Device:hasScreenKB()) and G_reader_settings:isFalse("virtual_keyboard_enabled") then
|
||||
self.keyboard_visible = false
|
||||
self.skip_first_show_keyboard = true
|
||||
end
|
||||
|
@ -655,6 +655,8 @@ function InputText:onKeyPress(key)
|
||||
else
|
||||
handled = false
|
||||
end
|
||||
-- This primarily targets Kindle. When a virtual keyboard is shown on screen, mod+dpad allows controlling the cursor, as dpad alone
|
||||
-- (see previous ‘if’) is now occupied handling the virtual keyboard.
|
||||
if not handled and (key["ScreenKB"] or key["Shift"]) then
|
||||
handled = true
|
||||
if key["Back"] and Device:hasScreenKB() then
|
||||
@ -685,6 +687,7 @@ function InputText:onKeyPress(key)
|
||||
end
|
||||
end
|
||||
if not handled and Device:hasSymKey() then
|
||||
handled = true
|
||||
local symkey = sym_key_map[key.key]
|
||||
-- Do not match Shift + Sym + 'Alphabet keys'
|
||||
if symkey and key.modifiers["Sym"] and not key.modifiers["Shift"] then
|
||||
|
Loading…
Reference in New Issue
Block a user