pqrs-org / Karabiner-Elements

Karabiner-Elements is a powerful utility for keyboard customization on macOS Sierra (10.12) or later.
https://pqrs.org/osx/karabiner/
The Unlicense
18.57k stars 834 forks source link

Exclude iTerm2 Hotkey window in rules? #3709

Open IPWright83 opened 7 months ago

IPWright83 commented 7 months ago

Is it possible to exclude the iTerm2 hotkey window when using complex modifications? I'm using the PC-Style Copy/Paste/Cut rule which already has:

"manipulators": [
        {
            "conditions": [
                {
                    "bundle_identifiers": [
                        "^com\\.googlecode\\.iterm2$",
                    ],
                    "type": "frontmost_application_unless"
                }
            ],

However using a modified version of this script https://apple.stackexchange.com/a/170699/514960 (to make it work on Python3) I can see that the iTerm2 "hotkey window" aka "Quake mode" never reports as having focus, despite it being the focused element. I'm guessing KarabinerElements works the same way - so I'm wondering how I might modify the rule? 🤔

IPWright83 commented 7 months ago

I found a temporary fix using this approach https://superuser.com/a/1828205/7457 - but it's taken me a few weeks to work out what the issue was.