Bind hotkeys with Super key didn't work in GTK3 apps
Steps to reproduce
- Create simple gtk theme with bind. Like this:
@binding-set SuperBindings {
bind "<Super>x" { "cut-clipboard" () };
bind "<Super>v" { "paste-clipboard" () };
bind "<Super>c" { "copy-clipboard" () };
}
entry {
-gtk-key-bindings: SuperBindings;
}
textview {
-gtk-key-bindings: SuperBindings;
}
label {
-gtk-key-bindings: SuperBindings;
}
- Activate it via
gsettings set org.gnome.desktop.interface gtk-key-theme "supertheme"
Current behavior
Nothing works, except in Firefox, which, I guess, read bindings from gtk and apply by itself.
Expected outcome
Super+C should work as Ctrl+C - copy selected text.
Version information
Ubuntu 18.10, Xorg libgtk-3-0 3.24.1-1ubuntu2
Additional information
Shortcuts with Super works perfectly when added via interface or gsettings system-wide (e.g. change desktops) and in GTK apps (e.g. in gnome-terminal). So system read Super and applications can handle it correctly.
And I've read that developers want to remove bindings in css in future versions of GTK. But then how to create system-wide custom bindings like Super+C in my case? It's basic and extremely useful feature. May be there is another way, which is currently works in my system?