Re:Why Is It So Hard to Detect Keyup Event on Linux?
by chrisseaton on Monday May 17, 2021 @12:08PM
(#27185048)
Isn't that kind of thing the responsibility of the desktop environment service? Not an application?
[ Parent
| on HN ]
Re:Why Is It So Hard to Detect Keyup Event on Linux?
by riskable on Monday May 17, 2021 @02:26PM
(#27186471)
As long as the desktop environment provides a mechanism for applications to register their global shortcuts then all is well. However, without such a feature the application has to just listen for all keystrokes and check if it matches something the user's configured.
Example: I've bound several scenes in OBS to keyboard shortcuts so that I can switch scenes no matter what application I'm in. I'm pretty sure OBS does this by listening to all keyboard events on the root window. It's not very efficient, but it works.
Now imagine having to support a global shortcut daemon per DE that exists. I suppose someone would write an abstraction but really, it's something that FreeDesktop.org should provide (if it already doesn't).
Re:Why Is It So Hard to Detect Keyup Event on Linux?
by yjftsjthsd-h on Monday May 17, 2021 @01:34PM
(#27185937)
I suppose the proper answer is that that very much depends on your philosophy of desktop environments; I happen to prefer modular desktops built out of separate programs from separate authors which may or may not even know about each other. This has the advantage of making it trivial to retrofit new features without needing to ask your DE upstream. Or to be more pithy: Okay, fine; what desktop environments implement keynav? With X11, I can make the answer be "(probably) all of them".