Open lstkz opened 7 years ago
Open "event viewer" to see if the keyboard is sending the correct keycode 1st. You can open "event viewer" form the last page of Karabiner app
In cbk settings, Ctrl and Command keys are swapped.
When I press the ctrl key, in the event viewer it's reported as Command_L
. This is correct.
In karabiner, I checked the option Swap Command+Tab and Control+Tab
, but it has no effect.
ctrl+tab always swaps the application windows.
I am a bit confused, let me see if I get this right, anything in CODE BLOCK
will be physical key, in () will be what the OS think
You wanna swap CMD
<-> CTRL
and you want CTRL
(CMD) + TAP
to switch app?
By default (without any mapping): CMD +TAB - switches apps CTRL + TAB - switches tabs (e.g. tabs in chrome)
I swapped CMD <-> CTRL in System Preferences and checked Swap Command+Tab and Control+Tab
in Karabiner and everything was working fine.
I installed ckb drivers for my new keyboard some time ago. Swapped CMD <-> CTRL (from System Preferences) are ignored, but ckb has an option to remap it.
All settings from karabiner stopped working.
For example:
check Swap Command+Tab and Control+Tab
When I press CTRL+TAB (physical keys) it switches apps. If I uncheck it the functionality is the same.
Put this is your private.xml
and enable it, also disable the swap you have in the ckb app
<item>
<name>Swap CMD, CTRL</name>
<identifier>private.swap.cmd.ctrl</identifier>
<autogen>
<!-- This swap Left COMMAND to CONTROL -->
__KeyToKey__
KeyCode::COMMAND_L, ModifierFlag::NONE,
KeyCode::CONTROL_L, ModifierFlag::NONE,
</autogen>
<!-- This swap Left CONTROL to COMMAND -->
<autogen>
__KeyToKey__
KeyCode::CONTROL_L, ModifierFlag::NONE,
KeyCode::COMMAND_L, ModifierFlag::NONE,
</autogen>
</item>
Give it a try
You can also try use MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL
and MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND
<item>
<name>Swap CMD, CTRL</name>
<identifier>private.swap.cmd.ctrl</identifier>
<autogen>
<!-- This swap both COMMAND to CONTROL -->
__KeyToKey__
KeyCode::MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, ModifierFlag::NONE,
KeyCode::MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, ModifierFlag::NONE,
</autogen>
<!-- This swap both CONTROL to COMMAND -->
<autogen>
__KeyToKey__
KeyCode::MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_CONTROL, ModifierFlag::NONE,
KeyCode::MODIFIERFLAG_EITHER_LEFT_OR_RIGHT_COMMAND, ModifierFlag::NONE,
</autogen>
</item>
I am not sure if the KeyCode::
is needed, if it give you error then try remove KeyCode::
I don't use Karabiner any more don't have it installed, can't test for you. Let me know if you have any more problem.
Not working (tried both examples).
I think all features from karabiner are not working. I remember I changed the repeat key interval (~25ms), and after installing ckb it's using the default system settings.
Hi, I'm debugging this behavior on ckb-next
and I wanted to describe my experiences:
ckb-next
(i.e. with the default key-rebinds) resets the behavior to system-default (Cmd + Tab -> Cmd + Tab, Ctrl + Tab -> Ctrl + Tab).ckb-next
and inspecting the keys on the event viewer yields the rebound keys, i.e. having the following rebind:yields the following results:
(the last two are because of the screenshot shortcut).
I suspect the ckb-next
daemon intercepts the hardware-signals and translates them to the setup value. ~Karabiner grabs the key later and translates them afterwards. Because with the same setup I can toggle the applications with Ctrl + Tab and the tabs with Windows + Tab.~ Nope, sorry Karabiner does not swap keys after ckb translates them.
I don't know, if this clarifies something but I hope this helps.
I have a k95 corsair keyboard, and I am using ckb-next drivers to configure it. There are some issues and changes from karabiner don't work. Can you answer to this issue https://github.com/mattanger/ckb-next/issues/154?
Thanks