SUMMARY Many programs will probably never support the builtin global shortcuts of Plasma. The bridge this gap with programs like OBS, I wish to have an option to send any keypress to an application. As far as I know, hyprland does have already implement this sort of functionality https://wiki.hyprland.org/Configuring/Binds/#global-keybinds
The problem is that this somewhat defeats the Wayland security model and disincentivizes apps to implement the standard protocols. It's a complex topic rife with desktop politics for sure. What specific use case you you need this for? Start/stop recording in OBS?
Yep. Start/Stop OBS while in a fullscreen application for example. Make it so that kwin passes only the keys the user has explicitly specified to the specified program and none else. I'm thinking maybe make the functionality a bit more obscure to find. An "Advanced Options" button in the shortcuts menu which only appears if you install and additional package. This way developers will be less likely to start relying on it.
Making the functionality hard to find just makes it harder for the user while not incentivizing application developers to do the right thing a lot. OBS just needs to implement the global shortcut portal. Afaict there isn't even an issue for that at https://github.com/obsproject/obs-studio/issues, so that would be the first step towards making that happen
Alright, thank. I'll go complain to them.
I've been lazy, but I finally decided to look into this. OBS keeps their feature requests in a separate location and I found a request for global shortcuts portal here https://ideas.obsproject.com/posts/2066/implement-globalshortcuts-portal
For future reference, it seems that a less nuanced way of achieving this already exists in the KDE settings. In Applications -> Legacy X11 App Support you can allow legacy apps to read key inputs. This sadly doesn't allow you to set specific keys as allowed and mouse forward and backward do not get passed.