44 lines
856 B
GDScript
44 lines
856 B
GDScript
class_name LayoutABNT extends AbstractLayout
|
|
|
|
static var name := "ABNT"
|
|
|
|
|
|
func get_name() -> String:
|
|
return name
|
|
|
|
|
|
func get_key_dict_rows() -> Array[Array]:
|
|
return [
|
|
CommonKeys.number_row() + [{KeyProps.KEY: KEY_BACKSPACE, KeyProps.W: 2}],
|
|
(
|
|
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
|
|
+ CommonKeys.letters_row_1()
|
|
+ [CommonKeys.big_enter_iso()]
|
|
),
|
|
(
|
|
[{KeyProps.KEY: KEY_CAPSLOCK, KeyProps.W: 1.75}]
|
|
+ CommonKeys.letters_row_2()
|
|
+ [{KeyProps.KEY: KEY_BACKSLASH}]
|
|
),
|
|
(
|
|
[
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 1.25,
|
|
KeyProps.LOC: KEY_LOCATION_LEFT
|
|
},
|
|
{KeyProps.KEY: KEY_SECTION},
|
|
]
|
|
+ CommonKeys.letters_row_3()
|
|
+ [
|
|
{KeyProps.KEY: KEY_NONE},
|
|
{
|
|
KeyProps.KEY: KEY_SHIFT,
|
|
KeyProps.W: 1.75,
|
|
KeyProps.LOC: KEY_LOCATION_RIGHT
|
|
}
|
|
]
|
|
),
|
|
CommonKeys.bottom_row()
|
|
]
|