-
Notifications
You must be signed in to change notification settings - Fork 1
Layout
#Create your own keymap layout You can use the online editor to create one or a normal text editor.
##Example
{
"line": 22.5,
"keys": [
[{
"code": 27,
"name": "esc"
}],
[{
"code": 192,
"name": "`",
"second": "~",
"third": "µ"
}]
]
}##Syntax: Every keymap layout is written in JSON and have to define the following elements:
line: Float, - Number of objects each row
keys: Object[], - Array of rows, each row is displayed as row in the layout, each row is a array of key objects
key: Object, - Definition of a key
[key.code]: Integer, - JavaScript keycode of key
[key.name]: String, - First level name of the key (displayed)
[key.second]: String, - Second level name of key (displayed)
[key.third]: String, - Third level name of key (displayed)
[key.value]: String, - Name of the key (not displayed), can be used for keys without a name just like Space on a real keyboard
[key.type]: [String=key], - Type of object, other value is "space" as separator between two keys
[key.width]: [Float=1], - Width of key, gets multiplied with width of complete keymap divided through "line"
[key.height]: [Float=1] - Height of key, gets multiplied with width of complete keymap divided through "line"
[key.offset]: [Float=0] - Additional offset of key, gets multiplied with width of complete keymap divided through "line"
[key.z-index]: [Integer=1] - Css property z-index of key, keys with height-attribute>1: 2
##Examples Layout mac_qwertz