Karabiner configuration file does not work properly

Asked 2 years ago, Updated 2 years ago, 38 views

I added it in Karabiner's xml file due to the Mac keyboard assignment change, but it doesn't work.

A check box has been added to the Karabiner list, and the check box is turned on, but nothing happens at all.
Is there any problem with the code written below?

<?xml version="1.0"?>
<root>
    <item>
        <name>Private::BackSpace and Return Remap</name>
        <item>
            <name>Left Command to Backspace</name>
            <appendix>Change Left Command to BackSpace</appendix>
            <identifier>private.swap_lcmd_to_delete</identifier>
            <autogen>
                __KeyToKey__
                KeyCode::COMMAND_L,ModifierFlag::NONE,
                KeyCode: DELETE
            </autogen>
        </item>
        <item>
            <name>Right Command To Return</name>
            <appendix>Change Right Command to Return</appendx>
            <identifier>private.swap_rcmd_to_return</identifier>
            <autogen>
                __KeyToKey__
                KeyCode::COMMAND_R,ModifierFlag::NONE,
                KeyCode::RETURN
            </autogen>
        </item>
    </item>
</root>

macos

2022-09-30 12:01

2 Answers

<appendix>ChangeRightCommandtoReturn</appendx>

in the section
<appendix>ChangeRightCommandtoReturn</appendix>

and
ModifierFlag::NONE description removed and it worked fine in this environment

ModifierFlag::NONE is detailed in the official documentation.

OS X Yosemite 10.10.3 Karabiner 10.6.0
MacBookAir 2013 mid (Japanese array)


2022-09-30 12:01

Modifier keys such as COMMAND_L and OPTION_L cannot be configured as key codes.

If you are using Karabiner simply because you want to replace the key, why not use Seil from the same manufacturer?

By the way, I also use Karabiner and Sail, and I have replaced COMMAND_L and OPTION_L. However, I set up key placement changes in Sail, and I use Karabiner to implement my own shortcuts.

Perhaps the original usage is to officially use Sail for simple key replacement settings.

https://pqrs.org/osx/karabiner/seil.html.ja

If you want to change Karabiner's profile to temporarily convert COMMAND_L to DELETE, you might want to set the Command key to a non-modifier key in Sail and then try creating two profiles in Karabiner.


2022-09-30 12:01

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.