keebie/scripts/layouts/layout_planck.gd

35 lines
971 B
GDScript

class_name LayoutPlanck extends AbstractLayout
static func name_static() -> String:
return "Planck"
func rows() -> Array[Array]:
return [
(
[{KeyProps.KEY: KEY_TAB}]
+ CommonLayout.letters_1()
+ [{KeyProps.KEY: KEY_BACKSPACE}]
),
[{KeyProps.KEY: KEY_ESCAPE}] + CommonLayout.letters_row_2(),
(
[{KeyProps.KEY: KEY_SHIFT, KeyProps.LOC: KEY_LOCATION_LEFT}]
+ CommonLayout.letters_row_3()
+ [{KeyProps.KEY: KEY_ENTER}]
),
[
{KeyProps.KEY: KEY_SPECIAL},
{KeyProps.KEY: KEY_CTRL, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_ALT, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_META, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_SPECIAL, KeyProps.LOC: KEY_LOCATION_LEFT},
{KeyProps.KEY: KEY_SPACE, KeyProps.W: 2},
{KeyProps.KEY: KEY_SPECIAL, KeyProps.LOC: KEY_LOCATION_RIGHT},
{KeyProps.KEY: KEY_LEFT},
{KeyProps.KEY: KEY_DOWN},
{KeyProps.KEY: KEY_UP},
{KeyProps.KEY: KEY_RIGHT},
]
]