Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- "title": "Delete word when both shift keys pressed 2x",
- "rules": [
- {
- "description": "Delete word when both shift keys pressed 2x",
- "manipulators": [
- {
- "type": "basic",
- "from": {
- "simultaneous": [
- {
- "key_code": "left_shift"
- },
- {
- "key_code": "right_shift"
- }
- ],
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "key_code": "delete_or_backspace"
- }
- ],
- "conditions": [
- {
- "type": "variable_if",
- "name": "both_shift pressed",
- "value": 1
- }
- ]
- },
- {
- "type": "basic",
- "from": {
- "simultaneous": [
- {
- "key_code": "left_shift"
- },
- {
- "key_code": "right_shift"
- }
- ],
- "modifiers": {
- "optional": [
- "any"
- ]
- }
- },
- "to": [
- {
- "set_variable": {
- "name": "both_shift pressed",
- "value": 1
- }
- },
- {
- "key_code": "left_shift"
- },
- {
- "key_code": "right_shift"
- }
- ],
- "to_delayed_action": {
- "to_if_invoked": [
- {
- "set_variable": {
- "name": "both_shift pressed",
- "value": 0
- }
- }
- ],
- "to_if_canceled": [
- {
- "set_variable": {
- "name": "both_shift pressed",
- "value": 0
- }
- }
- ]
- }
- }
- ]
- }
- ]
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement