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"]
}
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"]
}