Files
koreader/frontend/ui/data/keyboardlayouts/std.lua
Frans de Jonge 2760b98582 [UX] Add keyboard swipes (#4884)
Only the `e` and `E` are added in this initial commit.
2019-04-09 10:40:39 +02:00

96 lines
5.4 KiB
Lua
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

local _E_ = {
"E",
north = "Ë",
northeast = "É",
northwest = "È",
east = "Ê",
west = "",
south = "Ę",
southeast = "",
southwest = "Ė",
"Ē",
}
local _e_ = {
"e",
north = "ë",
northeast = "é",
northwest = "è",
east = "ê",
west = "",
south = "ę",
southeast = "",
southwest = "ė",
"ē",
}
return {
shiftmode_keys = {["Shift"] = true},
symbolmode_keys = {["Sym"] = true, ["ABC"] = true},
utf8mode_keys = {["IM"] = true},
umlautmode_keys = {["Äéß"] = true},
keys = {
-- first row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "Q", "q", "", "0", "Й", "й", "?", "!", "Å", "å", "1", "ª", },
{ "W", "w", "!", "1", "Ц", "ц", "(", "1", "Ä", "ä", "2", "º", },
{ _E_, _e_, "@", "2", "У", "у", ")", "2", "Ö", "ö", "3", "¡", },
{ "R", "r", "#", "3", "К", "к", "~", "3", "ß", "ß", "4", "¿", },
{ "T", "t", "+", "=", "Е", "е", "Ә", "ә", "À", "à", "5", "¼", },
{ "Y", "y", "", "(", "Н", "н", "І", "і", "Â", "â", "6", "½", },
{ "U", "u", "", ")", "Г", "г", "Ң", "ң", "Æ", "æ", "7", "¾", },
{ "I", "i", "|", "\\", "Ш", "ш", "Ғ", "ғ", "Ü", "ü", "8", "©", },
{ "O", "o", "?", "/", "Щ", "щ", "Х", "х", "È", "è", "9", "®", },
{ "P", "p", "~", "`", "З", "з", "Ъ", "ъ", "É", "é", "0", "", },
},
-- second row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ "A", "a", "", "@", "Ф", "ф", "*", "0", "Ê", "ê", "Ş", "ş", },
{ "S", "s", "$", "4", "Ы", "ы", "+", "4", "Ë", "ë", "İ", "ı", },
{ "D", "d", "%", "5", "В", "в", "-", "5", "Î", "î", "Ğ", "ğ", },
{ "F", "f", "^", "6", "А", "а", "=", "6", "Ï", "ï", "Ć", "ć", },
{ "G", "g", ":", ";", "П", "п", "Ү", "ү", "Ô", "ô", "Č", "č", },
{ "H", "h", "\"", "'", "Р", "р", "Ұ", "ұ", "Œ", "œ", "Đ", "đ", },
{ "J", "j", "{", "[", "О", "о", "Қ", "қ", "Ù", "ù", "Š", "š", },
{ "K", "k", "}", "]", "Л", "л", "Ж", "ж", "Û", "û", "Ž", "ž", },
{ "L", "l", "_", "-", "Д", "д", "Э", "э", "Ÿ", "ÿ", "Ő", "ő", },
},
-- third row
{ -- 1 2 3 4 5 6 7 8 9 10 11 12
{ label = "Shift",
icon = "resources/icons/appbar.arrow.shift.png",
width = 1.5
},
{ "Z", "z", "&", "7", "Я", "я", ":", "7", "Á", "á", "Ű", "ű", },
{ "X", "x", "*", "8", "Ч", "ч", ";", "8", "Ø", "ø", "Ã", "ã", },
{ "C", "c", "£", "9", "С", "с", "'", "9", "Í", "í", "Þ", "þ", },
{ "V", "v", "<", "", "М", "м", "Ө", "ө", "Ñ", "ñ", "Ý", "ý", },
{ "B", "b", ">", ".", "И", "и", "Һ", "һ", "Ó", "ó", "", "", },
{ "N", "n", "", "", "Т", "т", "Б", "б", "Ú", "ú", "", "", },
{ "M", "m", "", "", "Ь", "ь", "Ю", "ю", "Ç", "ç", "", "¨", },
{ label = "Backspace",
icon = "resources/icons/appbar.clear.reflect.horizontal.png",
width = 1.5
},
},
-- fourth row
{
{ "Sym", "Sym", "ABC", "ABC", "Sym", "Sym", "ABC", "ABC", "Sym", "Sym", "ABC", "ABC",
width = 1.5},
{ label = "IM",
icon = "resources/icons/appbar.globe.wire.png",
},
{ "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", "Äéß", },
{ label = "space",
" ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ", " ",
width = 3.0},
{ ",", ",", "", "", ",", ",", "Ё", "ё", "Ũ", "ũ", ",", ",", },
{ ".", ".", "", "", ".", ".", ".", ".", "Ĩ", "ĩ", ".", ".", },
{ label = "Enter",
"\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n", "\n",
icon = "resources/icons/appbar.arrow.enter.png",
width = 1.5,
},
},
},
}