This forum has been archived. All content is frozen. Please use KDE Discuss instead.

[Wayland] Global keyboard shortcut protocol

0

Votes
0
0
Tags: None
(comma "," separated)
Lachu
Registered Member
Posts
864
Karma
1
OS
There's needed a new protocol to implement a way to query for global keyboard shortcut and ask to register own or disable some global keyboard shortcut.

Application can ask compositor state of alt+tab keyboard combination: it's grabbed by compositor or directed to active window. In next step application can ask compositor to disable this shortcut, when one's window is active. User will see similar message:
„Application X needs to grab keyboard shortcut Y, when window Z is active. Do you agree?"
Options: Yes and No, redirect keyboard shortcut to another combination for application, redirect keyboard shortcut to another combination for compositor.

First option disable shortcut, when window Z is active. Second does nothing. 3. allows to set (for example) esc to report application as alt+tab afre pressed. 4. allows to change alt+tab combination to another for compositor.

For example:
"Application GTAIwine) needs to grab keyboard shortcut ALT+TAB, when window GTA game is active. Do you agree?. Application tells: This shortcut will rotate tower of tank"


Lachu, proud to be a member of KDE forums since 2008-Nov.
bam80
Registered Member
Posts
3
Karma
0
Was it lead to somewhere?
Lachu
Registered Member
Posts
864
Karma
1
OS
bam80 wrote:Was it lead to somewhere?

GNOME and Plasma5 uses different default shortcuts. Also, some apps could register own global shortcuts. That's made creating application harder. I only tell old GIMP case. GIMP uses alt for something and Plasma5 uses alt as KWIN modifier. There could be more cases. Another case are SDL(1) games, which grabs keyboard under X, so alt+tab not working and app could uses tab and alt keys for something.


Lachu, proud to be a member of KDE forums since 2008-Nov.


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], sandyvee, Sogou [Bot]