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.82k stars 838 forks source link

Ability to disable global keyboard shortcuts for a specific app #2457

Open fatlazycat opened 4 years ago

fatlazycat commented 4 years ago

Is there anyway to disable all global keyboard shortcuts so a named specific app can get them the active ?

Problem is using an app like IntelliJ IDEA and many conflicts.

Thanks

Bennett-Lynch commented 4 years ago

+1. I love Karabiner and I use most of the PC-Style shortcuts, but for IntelliJ IDEA, I want to use the built-in XWin keymap and not rely on Karabiner (other than perhaps swapping control/command). Currently, it seems like the only solution is to exclude Intellij from the N number of rules.

fatlazycat commented 4 years ago

Ah, to be clearer I wanted to stop global keyboard shortcuts defined in macOS or other apps from being activated for IntelliJ.

When I invoke some shortcut in IntelliJ it then also invokes the global shortcut as well and I have to hunt down where it is defined in the other app and turn it off.

stale[bot] commented 3 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

puresick commented 3 years ago

I would also be interested in some similar feature. In my case, I would love to have the shortscuts in Karabiner be disabled if I focused Alacritty or any other terminal application.

cppguru commented 2 years ago

+1. The default MacOS shortcuts are a pain when working on Windows using RDP or a Virtual Machine. VMs may give the ability to hijack keys, but then one has to configure that for each, individually. Otherwise I could just use Karabiner to have a set of "Windows unfriendly hotkeys to turn off" and set the apps to which it applies. (EDIT: I'd love to do it myself, but my MacOS knowledge is not even enough for a Dunning-Kruger.)

cesalberca commented 2 years ago

Is there a workaround for this?

JoeBrig commented 2 years ago

I use VIM style remaps of arrow keys in MacOS. This causes problems when working in the VIM app via a terminal. The ability to turn off mappings for specific apps, Alacritty in my case, would help.

exsesx commented 1 year ago

Yeah, it's a nice feature to have. I use IDE for coding, and I want to use Control+Space for IDE key bindings and not switch languages in macOS...

top-kat commented 1 year ago

Any news on this ?

naimmas commented 5 months ago

Any updates? It would be a great feature especially when working on Win RDP.