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,