forked from pqrs-org/Karabiner-Elements
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
170 additions
and
4 deletions.
There are no files selected for viewing
40 changes: 40 additions & 0 deletions
40
...irtual_devices/json/expected_post_event_to_virtual_devices_queue/to_delayed_action_5.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
[ | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [ | ||
"left_shift" | ||
] | ||
}, | ||
"time_stamp": 5, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 10, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [ | ||
{ | ||
"key_code": "a" | ||
} | ||
], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 15, | ||
"type": "keyboard_input" | ||
}, | ||
{ | ||
"keyboard_input": { | ||
"keys": [], | ||
"modifiers": [] | ||
}, | ||
"time_stamp": 20, | ||
"type": "keyboard_input" | ||
} | ||
] |
95 changes: 95 additions & 0 deletions
95
tests/src/post_event_to_virtual_devices/json/input_event_queue/to_delayed_action_5.jsonc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
[ | ||
// left_shift key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "left_shift" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_time_stamp": { | ||
"time_stamp": 2 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "left_shift" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// f13 key_down | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_time_stamp": { | ||
"time_stamp": 4 | ||
}, | ||
"event_type": "key_down", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// f13 key_up | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_time_stamp": { | ||
"time_stamp": 6 | ||
}, | ||
"event_type": "key_up", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "f13" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// left_shift key_up | ||
{ | ||
"device_id": 1, | ||
"event": { | ||
"momentary_switch_event": { | ||
"key_code": "left_shift" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"event_time_stamp": { | ||
"time_stamp": 8 | ||
}, | ||
"event_type": "key_up", | ||
"lazy": false, | ||
"original_event": { | ||
"momentary_switch_event": { | ||
"key_code": "left_shift" | ||
}, | ||
"type": "momentary_switch_event" | ||
}, | ||
"validity": true | ||
}, | ||
// left_shift+a should be sent by to_if_invoked | ||
{ | ||
"action": "invoke_dispatcher", | ||
"time_stamp": 2000 | ||
} | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters