mirror of
https://github.com/koreader/koreader.git
synced 2025-08-10 00:52:38 +00:00
Extend the FR and ES keyboards from the EN one, and just tweak what has to be changed. This will allow them to stay in sync with the EN keyboard's recent and futur developments of key popups. Also make the FR keyboard a bit more AZERTY.
16 lines
550 B
Lua
16 lines
550 B
Lua
-- Start with the english keyboard layout
|
|
local es_keyboard = dofile("frontend/ui/data/keyboardlayouts/en_keyboard.lua")
|
|
|
|
local keys = es_keyboard.keys
|
|
|
|
-- Insert an additional key at the end of 2nd row for easy Ñ and ñ
|
|
table.insert(keys[2],
|
|
-- 1 2 3 4 5 6 7 8 9 10 11 12
|
|
{ "Ñ", "ñ", "Ñ", "ñ", "Ñ", "ñ", "Ñ", "ñ", "Ñ", "ñ", "Ñ", "ñ", }
|
|
)
|
|
|
|
-- Rename "space"
|
|
keys[4][4].label = "espacio"
|
|
|
|
return es_keyboard
|