keyboard_type_if, keyboard_type_unless
Change an event if/unless the event is from specified type keyboard.
{
"type": "keyboard_type_if",
"keyboard_types": ["ansi", "iso"]
}
Tip
It’s useful for supporting “change control-[ to escape” with all keyboard types. (example json)
Some characters have different key code for each keyboard types.
(e.g., [ is open_bracket
on ansi and iso, close_bracket
on jis.)
Name | Required | Description |
---|---|---|
type |
Required | "keyboard_type_if" or "keyboard_type_unless" |
keyboard_types |
Required | An array of "ansi" , "iso" or "jis" |
description |
Optional | A human-readable comment |
Multiple keyboard types
keyboard_types
are joined by “or”.
The following condition is matched if the keyboard type is “ansi” or “iso”.
{
"type": "keyboard_type_if",
"keyboard_types": ["ansi", "iso"]
}