Keypress events and global keypress interrupt

I'm working with a weird custom keyboard device that I cannot modify the output of. Currently it outputs function keys like F8 and F11. KM is triggered, but I can't get it to interrupt the key event and keep it from being sent to the system. As a result, F11 triggers the macro I want, but also triggers a system behavior in OSX. Can KM block this command from making it to the system for this one device?

Have you tried re-mapping keys, with something like Karabiner-Elements?

Thanks for the suggestion on Karabiner. I'm now using that to map away from the F8-F12 range and instead into F17-F20. That said, key inputs on those ranges are still doing things in other apps. Can I completely intercept them and prevent them from doing anything outside of KM?

It looks like the "out" command might be what you're looking for?

KM gets the key commands after Karabiner has modified them, so this means the keystroke never reaches KM because Karabiner blocks it, unfortunately.

I don't know why but I can't let this go, and the moderators may deem it irrelevant to the KM software, but I'm still digging like a dog with a bone. Seems like there has to be an answer.

I was browsing the KE library here and looking at how to disable specific functions built-in to the OS. So maybe you could figure out the normal triggers for the behavior you're seeing and edit this JSON file accordingly. For example, if the function key in question were triggering the results of command-h, you could disable the command-h behavior unless you needed it. Then add that JSON file to your KE config. If you tell me what it's doing specifically I might be able to figure out a work-around.

{
"title": "Prevent unintended command-h hide window (rev 2)",
"rules": [
{
"description": "Disable Cmd+H Hide (rev 2)",
"manipulators": [
{
"type": "basic",
"description": "",
"from": {
"key_code": "h",
"modifiers": {
"mandatory": [
"command"
]
}
}
}
]
}
]
}

Thanks for going deep into this – you definitely know KE far better than I do. Here's the config I'm working with currently for this device (I haven't modified any other defaults in the app as far as I am aware). I haven't figured out all of the commands it's triggering, but it keeps making a chime when keys are pressed. Initially one of the keys activated OS X's "Expose" function, but the remap fixed that, so now it just chimes.

            "devices": [
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": true,
                        "is_pointing_device": false,
                        "product_id": 617,
                        "vendor_id": 1241
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": []
                },
                {
                    "disable_built_in_keyboard_if_exists": false,
                    "fn_function_keys": [],
                    "identifiers": {
                        "is_keyboard": true,
                        "is_pointing_device": false,
                        "product_id": 780,
                        "vendor_id": 1523
                    },
                    "ignore": false,
                    "manipulate_caps_lock_led": false,
                    "simple_modifications": [
                        {
                            "from": {
                                "key_code": "f8"
                            },
                            "to": {
                                "key_code": "f17"
                            }
                        },
                        {
                            "from": {
                                "key_code": "f9"
                            },
                            "to": {
                                "key_code": "f18"
                            }
                        },
                        {
                            "from": {
                                "key_code": "f11"
                            },
                            "to": {
                                "key_code": "f19"
                            }
                        },
                        {
                            "from": {
                                "key_code": "f12"
                            },
                            "to": {
                                "key_code": "f20"
                            }
                        }
                    ]
                }
            ],

Really not sure, and this may not be a satisfying solution, but you can adjust the error sound feedback to zero.

--

There are some other ideas here and here. A common suggestion on different sites is a bad setting in the Accessibility panel, though I'm not sure where exactly. Any of those help?