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.51k stars 832 forks source link

Logitec K860 Keyboard - Print Screen Re-mapping no possible #2419

Open bud1979 opened 3 years ago

bud1979 commented 3 years ago

I recently switched to a Logitec K860, and now hit the PrintScreen often as it is close to the backspace key. I launched the "Event Viewer" but when I push the Print Screen, nothing shows up to be re-mapped, just empty, but the images show up from the print screen command.

I have access through the Security Preferences, and other re-mappings work ok. Did update to the newest Beta 12.10.4, but still nothing.

Let me know if I can troubleshoot in any way.

Dylan-Bollard commented 3 years ago

This should do it

` "rules": [

{

    "description": "print_screen to command+shift+3",

    "manipulators": [

        {

            "from": {

                "key_code": "print_screen"

            },

            "to": [

                {

                    "key_code": "3",

                    "modifiers": [

                        "left_command",

                        "left_shift"

                    ]

                }

            ],

            "type": "basic"

        }

    ]

},

{

    "description": "shift+print_screen to command+shift+4",

    "manipulators": [

        {

            "from": {

                "key_code": "print_screen",

                "modifiers": {

                    "optional": [

                        "left_shift",

                        "right_shift"

                    ]

                }

            },

            "to": [

                {

                    "key_code": "4",

                    "modifiers": [

                        "left_command",

                        "left_shift"

                    ]

                }

            ],

            "type": "basic"

        }

    ]

}

]

`

I'm working on a guide for stuff like this on my page. Updates coming soon.

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.

brettflorio commented 1 year ago

@Dylan-Bollard The issue isn't mapping the print screen button, but that the keyboard isn't actually sending the print_screen key code. Rather, it's sending command+shift+3. The Logi Options app can remap it, but I'm not sure how Karabiner would.

alex224 commented 1 month ago

A workaround is to change the MacOS keyboard shortcuts. You can customise these shortcuts in Keyboard Preferences. On your Mac, choose Apple menu > System Preferences, click Keyboard in the sidebar, click Keyboard shortcuts in the right pane, and then click Screenshots. Then disable the shortcut altogether or choose a different one.