Karabiner Elements: Remapped "Paste and Match Style" works for keyboard only, and is renamed for some weird reason

  1. Open Keynote, click Edit in the menu bar and see the sixth element is “Paste and Match Style”.

  2. Install Karabiner Elements and add the following karabiner.json:

    {
        "global": {
            "check_for_updates_on_startup": true,
            "show_in_menu_bar": true,
            "show_profile_name_in_menu_bar": false
        },
        "profiles": [
            {
                "complex_modifications": {
                    "rules": [
                        {
                            "manipulators": [
                                {
                                    "description": "Change caps_lock to control+option+shift+command.",
                                    "from": {
                                        "key_code": "caps_lock",
                                        "modifiers": {
                                            "optional": [
                                                "any"
                                            ]
                                        }
                                    },
                                    "to": [
                                        {
                                            "key_code": "left_shift",
                                            "modifiers": [
                                                "left_control",
                                                "left_option",
                                                "left_command",
                                            ]
                                        }
                                    ],
                                    "to_if_alone": [
                                        {
                                            "key_code": "escape"
                                        }
                                    ],
                                    "type": "basic"
                                }
                            ]
                        }
                    ]
                }
            }
        ]
    }
    
  3. Open System Settings, click Keyboard, Keyboard Shortcuts, App Shortcuts.

  4. Set Menu title to Paste and Match Style and the Keyboard Shortcut to Caps Lock-V (that is, Control-Option-Shift-Command-V).

  5. Open Keynote, click Edit in the menu bar and see the sixth element is now called “Paste and Preserve Style”.

Why does its name changed? And why, despite Caps Lock-V works fine to paste and text and match/preserve style, the Paste and Preserve Style item is always greyed out in the menu?

I’d put that down to a bug. “Paste and Match Style” remains and works the same as before the key reassignment. The new “Paste and Preserve Style” is disabled and is also unneeded since “Paste” preserves the style. It gets the same key assignment that “Paste and Match Style” originally had, but since it is disabled the key assignment won’t do anything.

Also interesting is that “Paste and Preserve Style” doesn’t appear to be mentioned anywhere on the web but where you mentioned it! And I tried the reassignment with a non-Apple app (Scrivener) which has “Paste and Match Style” and it worked normally. Yep, definitely an Apple software bug!

1 Like

Many thanks. This is really a mysterious thing.