比如双击 option 即可呼出搜索框
1
CY4suncheng 2022-10-12 10:28:16 +08:00
不知道,我已经替换到 spotlight 了,😂
|
2
monstervivi 2022-10-12 10:36:36 +08:00
|
3
kennir 2022-10-12 12:41:30 +08:00
我是双击 shift 弹出,在 raycast 里把快捷键改成 f17 就可以了
``` { "title": "Spotlight", "rules": [ { "description": "Double tap right shift to spotlight | 双击 右 shift 弹出 Spotlight 并且切换到英文", "manipulators": [ { "type": "basic", "from": { "key_code": "right_shift", "modifiers": { "optional": ["any"] } }, "to": [ { "key_code": "f17" }, { "select_input_source": { "language": "en" } } ], "conditions": [ { "type": "variable_if", "name": "right_shift pressed", "value": 1 } ] }, { "type": "basic", "from": { "key_code": "right_shift", "modifiers": { "optional": ["any"] } }, "to": [ { "set_variable": { "name": "right_shift pressed", "value": 1 } }, { "key_code": "right_shift" } ], "to_delayed_action": { "to_if_invoked": [ { "set_variable": { "name": "right_shift pressed", "value": 0 } } ], "to_if_canceled": [ { "set_variable": { "name": "right_shift pressed", "value": 0 } } ] } } ] }, { "description": "Command_L (⌘) + Space → Spotlight (F18) | 左 Command (⌘) + 空格 → 聚焦搜索", "manipulators": [ { "from": { "key_code": "spacebar", "modifiers": { "mandatory": [ "left_command" ], "optional": [ "left_option" ] } }, "to": [ { "key_code": "f17" }, { "select_input_source": { "language": "en" } } ], "type": "basic" } ] } ] } ``` |