Great #wayland is forcing me to buy a new keyboard as there's no support for custom shortcuts any more, and hasn't been for years under it, so unlikely to suddenly get sorted...
I mean, it's kinda both I think? I'm not entirely certain how Gnome does its thing even though I use it, maybe Mutter intercepts any keypress before it reaches an application, but "simulating keypresses" sounds exactly like the kind of thing wayland intentionally forbids.
However, take that with a massive grain of salt because I do not comprehend why they're wanting to simulate keystrokes in the first place, so my opinion is bound to be flawed somewhere.
@Isofruit @fedops to add insult to injury, there's a project in the #kubuntu repo., `Input Remapper`, that manages to do, but you have to manually start it, providing a password each time, and it's spectacularly over the top compared to what #kde used to be able to do: turn the "help" button on my keyboard into "Ctrl+C"
@Isofruit the XDG Desktop portal includes a portal for Global Shortcuts. It's in the DP documentation. Applications register to receive shortcuts whether they are focused or not.
I don't know much about KDE but I'd assume this could be made part of whatever their base application class is.
Either way when it works in Gnome and doesn't in KDE then blaming it on an underlying layer common to both isn't great. If they don't support this DP then it's on them.
@falken I'm sorry this is complete BS apparently from KDE. Global shortcuts work just fine under Gnome and in any WM I've tried so far.