From 306fd6c5142e3a2f13758ff366a7007a038dda16 Mon Sep 17 00:00:00 2001 From: David <97603719+Commodore64user@users.noreply.github.com> Date: Sat, 21 Jun 2025 07:12:03 +0100 Subject: [PATCH] [Hotkeys] remove alphabetic hotkeys from K4 (#13950) --- plugins/hotkeys.koplugin/defaults.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/plugins/hotkeys.koplugin/defaults.lua b/plugins/hotkeys.koplugin/defaults.lua index 3dc71314e..9c56ce108 100644 --- a/plugins/hotkeys.koplugin/defaults.lua +++ b/plugins/hotkeys.koplugin/defaults.lua @@ -40,9 +40,9 @@ return { alt_plus_a = nil, alt_plus_b = nil, alt_plus_c = nil, - alt_plus_d = {dictionary_lookup = true,}, + alt_plus_d = Device:hasKeyboard() and {dictionary_lookup = true,} or {}, alt_plus_e = nil, - alt_plus_f = {file_search = true,}, + alt_plus_f = Device:hasKeyboard() and {file_search = true,} or {}, alt_plus_g = nil, alt_plus_h = nil, alt_plus_i = nil, @@ -59,7 +59,7 @@ return { alt_plus_t = nil, alt_plus_u = nil, alt_plus_v = nil, - alt_plus_w = {wikipedia_lookup = true,}, + alt_plus_w = Device:hasKeyboard() and {wikipedia_lookup = true,} or {}, alt_plus_x = nil, alt_plus_y = nil, alt_plus_z = nil, @@ -96,9 +96,9 @@ return { alt_plus_a = nil, alt_plus_b = nil, alt_plus_c = nil, - alt_plus_d = {dictionary_lookup = true,}, + alt_plus_d = Device:hasKeyboard() and {dictionary_lookup = true,} or {}, alt_plus_e = nil, - alt_plus_f = {file_search = true,}, + alt_plus_f = Device:hasKeyboard() and {file_search = true,} or {}, alt_plus_g = nil, alt_plus_h = nil, alt_plus_i = nil, @@ -111,11 +111,11 @@ return { alt_plus_p = nil, alt_plus_q = nil, alt_plus_r = nil, - alt_plus_s = {fulltext_search = true,}, + alt_plus_s = Device:hasKeyboard() and {fulltext_search = true,} or {}, alt_plus_t = nil, alt_plus_u = nil, alt_plus_v = nil, - alt_plus_w = {wikipedia_lookup = true,}, + alt_plus_w = Device:hasKeyboard() and {wikipedia_lookup = true,} or {}, alt_plus_x = nil, alt_plus_y = nil, alt_plus_z = nil,