a key_code property to a to action: add_key_code 'h', 'i', 'x' The to action object is more typically created via the manipulator object's add_action() method. The constructor method is not called directly. Note that the methods below also apply to the other to actions ( to_if_alone, to_after_key_up, etc.)Ĭonsult the official Karbiner documentation about the to data structure. For example, you may want Karbiner to execute a shell script if control-shift-h is pressed.īelow are the methods used to add data to the to action. The To actions describe what Karbiner will do when the from action associated with the to action is triggered. # Other "to" actions may be added as well: # Use methods to add data to the C action:
JSON::Karabiner::Manipulator::Actions::To - To action object SYNOPSIS add_action 'to' add_select_input_source($option, $value).