V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
70599
V2EX  ›  Apple

如何在 macOS 11.2 激活 Spotlight 时,切换到指定输入法?

  •  
  •   70599 · 2021-02-07 00:49:15 +08:00 · 1214 次点击
    这是一个创建于 1193 天前的主题,其中的信息可能已经有所发展或是发生改变。

    已勾选 设置 -> 键盘 -> 输入法 -> 自动切换到文稿的输入法,没用。

    6 条回复    2021-02-07 17:18:48 +08:00
    Cuo
        1
    Cuo  
       2021-02-07 03:14:24 +08:00 via iPhone
    我是在 karabiner 设置 command + spacebar 时切换为指定输入法
    Cuo
        2
    Cuo  
       2021-02-07 03:17:39 +08:00 via iPhone
    {
    "description": "略",
    "manipulators": [
    {
    "type": "basic",
    "from": {
    "key_code": "spacebar",
    "modifiers": {
    "mandatory": ["command"]
    }
    },
    "to": [
    {
    "key_code": "spacebar",
    "modifiers": "command"
    },
    {
    "select_input_source": {
    "input_source_id": "com.apple.keylayout.ABC"
    }
    }
    ]
    }
    ]
    },
    alazysun
        3
    alazysun  
       2021-02-07 03:18:37 +08:00
    装一个第三方? mas 搜自动切换输入法
    Wao
        4
    Wao  
       2021-02-07 10:15:51 +08:00
    yalix
        5
    yalix  
       2021-02-07 12:11:28 +08:00
    如果有 Keyboard Maestro, 可以这样

    ![Keyboard Maestro.png]( https://i.loli.net/2021/02/07/Tiyx2EY3gtCRSJ7.png)
    70599
        6
    70599  
    OP
       2021-02-07 17:18:48 +08:00
    正好在用 BetterTouchTool,就用它来解决了。
    激活聚焦搜索的时候用 Apple 脚本选择输入法。
    ```
    tell application "System Events" to ¬
    tell application process "TextInputMenuAgent" to ¬
    tell menu bar item 1 of menu bar 2
    click
    click menu item "Unicode 十六进制输入" of menu 1
    end tell
    ```
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   5396 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 09:33 · PVG 17:33 · LAX 02:33 · JFK 05:33
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.