keebie/scripts/layouts/layout_jd40.gd

56 lines
1.1 KiB
GDScript

class_name LayoutJD40 extends AbstractLayout
static func name_static() -> String:
return "JD40"
func rows() -> Array[Array]:
return [
(
[{KeyProps.KEY: KEY_ESCAPE}]
+ CommonLayout.letters_1()
+ [{KeyProps.KEY: KEY_BACKSPACE}]
),
(
[{KeyProps.KEY: KEY_TAB, KeyProps.W: 1.5}]
+ CommonLayout.letters_2()
+ [{KeyProps.KEY: KEY_ENTER, KeyProps.W: 1.5}]
),
(
[
{
KeyProps.KEY: KEY_SHIFT,
KeyProps.W: 1.75,
KeyProps.LOC: KEY_LOCATION_LEFT
}
]
+ CommonLayout.letters_3()
+ [
{KeyProps.KEY: KEY_COMMA},
{
KeyProps.KEY: KEY_SHIFT,
KeyProps.W: 1.25,
KeyProps.LOC: KEY_LOCATION_RIGHT
},
{KeyProps.KEY: KEY_PERIOD},
]
),
[
{KeyProps.KEY: KEY_CTRL, KeyProps.W: 1.5, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_SPECIAL, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_ALT, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_SPACE, KeyProps.W: 6},
{
KeyProps.KEY: KEY_SPECIAL,
KeyProps.W: 1.25,
KeyProps.LOC: KEY_LOCATION_RIGHT
},
{
KeyProps.KEY: KEY_CTRL,
KeyProps.W: 1.25,
KeyProps.LOC: KEY_LOCATION_RIGHT
},
]
]