Update on-screen keyboard.py (#874)
This commit is contained in:
parent
485c82c53f
commit
5de5e1e3eb
@ -43,25 +43,29 @@ class Keyboard(Gtk.Box):
|
||||
self.keys = [
|
||||
[
|
||||
["q", "w", "e", "r", "t", "y", "u", "i", "o", "p", "⌫"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l", "'"],
|
||||
["ABC", "z", "x", "c", "v", "b", "n", "m", ",", ".", "?123"],
|
||||
["a", "s", "d", "f", "g", "h", "j", "k", "l"],
|
||||
["ABC", "z", "x", "c", "v", "b", "n", "m", "123"],
|
||||
],
|
||||
[
|
||||
["Q", "W", "E", "R", "T", "Y", "U", "I", "O", "P", "⌫"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L", "'"],
|
||||
["?123", "Z", "X", "C", "V", "B", "N", "M", ",", ".", "abc"],
|
||||
["A", "S", "D", "F", "G", "H", "J", "K", "L"],
|
||||
["123", "Z", "X", "C", "V", "B", "N", "M", "abc"],
|
||||
],
|
||||
[
|
||||
["1", "2", "3", "4", "5", "6", "7", "8", "9", "0", "⌫"],
|
||||
["=", "-", "+", "*", "/", "\\", ":", ";", "'", "\""],
|
||||
["abc", "(", ")", "#", "$", "!", "?", "@", "_", ",", "ABC"],
|
||||
["-", "/", ":", ";", "(", ")", "$", "&", "@", "\""],
|
||||
["abc", "#+=", ".", ",", "?", "!", "'", "ABC"],
|
||||
],
|
||||
[
|
||||
|
||||
["[", "]", "{", "}", "#", "%", "^", "*", "+", "=", "⌫"],
|
||||
["_", "\\", "|", "~", "<", ">", "€", "£", "¥", "•"],
|
||||
["abc", "123", ".", ",", "?", "!", "'", "ABC"],
|
||||
]
|
||||
]
|
||||
|
||||
if language == "es":
|
||||
self.keys[0][1].remove("'")
|
||||
self.keys[0][1].append("ñ")
|
||||
self.keys[1][1].remove("'")
|
||||
self.keys[1][1].append("Ñ")
|
||||
|
||||
for pallet in self.keys:
|
||||
@ -152,7 +156,9 @@ class Keyboard(Gtk.Box):
|
||||
self.set_pallet(0)
|
||||
elif key == "ABC":
|
||||
self.set_pallet(1)
|
||||
elif key == "?123":
|
||||
elif key == "123":
|
||||
self.set_pallet(2)
|
||||
elif key == "#+=":
|
||||
self.set_pallet(3)
|
||||
else:
|
||||
Gtk.Entry.do_insert_at_cursor(self.entry, key)
|
||||
|
Loading…
x
Reference in New Issue
Block a user