From 8530282d38c9ed9778babd684aae4fa4867eb5d8 Mon Sep 17 00:00:00 2001 From: sdasda7777 <17746796+sdasda7777@users.noreply.github.com> Date: Wed, 8 May 2024 11:04:23 +0200 Subject: [PATCH] Add Czech keyboard layout (#11769) Fixes #11339. --- .../ui/data/keyboardlayouts/cs_keyboard.lua | 57 +++++++++++++++++++ frontend/ui/widget/virtualkeyboard.lua | 1 + 2 files changed, 58 insertions(+) create mode 100644 frontend/ui/data/keyboardlayouts/cs_keyboard.lua diff --git a/frontend/ui/data/keyboardlayouts/cs_keyboard.lua b/frontend/ui/data/keyboardlayouts/cs_keyboard.lua new file mode 100644 index 000000000..a2a9a568b --- /dev/null +++ b/frontend/ui/data/keyboardlayouts/cs_keyboard.lua @@ -0,0 +1,57 @@ +local cs_keyboard = require("util").tableDeepCopy(require("ui/data/keyboardlayouts/sk_keyboard")) + +local keys = cs_keyboard.keys + +keys[1][2][1] = { + "2", + north = "ě", + northeast = "Ě", + east = "~", + southeast = "/", + south = "@", + southwest = "https://", + west = "http://", + northwest = "Ĺ", + alt_label = "ě", +} +keys[1][2][2] = { + "ě", + north = "2", + northeast = "Ě", + east = "~", + southeast = "/", + south = "@", + southwest = "https://", + west = "http://", + northwest = "ĺ", + alt_label = "2", +} + +keys[1][5][1] = { + "5", + north = "ř", + northeast = "Ř", + east = "¾", + southeast = "‱", + south = "%", + southwest = "‰", + west = "⅔", + northwest = "Ŕ", + alt_label = "ř", +} +keys[1][5][2] = { + "ř", + north = "5", + northeast = "Ř", + east = "¼", + southeast = "‱", + south = "%", + southwest = "‰", + west = "½", + northwest = "ŕ", + alt_label = "5", +} + +keys[5][4].label = "mezera" + +return cs_keyboard diff --git a/frontend/ui/widget/virtualkeyboard.lua b/frontend/ui/widget/virtualkeyboard.lua index 52c363a18..42957cf23 100644 --- a/frontend/ui/widget/virtualkeyboard.lua +++ b/frontend/ui/widget/virtualkeyboard.lua @@ -801,6 +801,7 @@ local VirtualKeyboard = FocusManager:extend{ ar = "ar_keyboard", bg_BG = "bg_keyboard", bn = "bn_keyboard", + cs = "cs_keyboard", da = "da_keyboard", de = "de_keyboard", el = "el_keyboard",