Commit a12507f6 authored by Marinus Schraal's avatar Marinus Schraal

shortcuts: Fix CSS to allow ctrl+space accelerator

Turns out we still used outdated css nodes to unbind space key.

Revert the change in df89b9bf and fix the css node names and add flowbox.
Use the 'widget' name for libgd classes, since they are outdated and
don't provide a css name yet.
parent f312ad1b
@define-color music_entry_tag_bg #3465a4; @define-color music_entry_tag_bg #3465a4;
@define-color music_entry_tag_fg @theme_base_color; @define-color music_entry_tag_fg @theme_base_color;
@binding-set UnbindSpace{ @binding-set unbind-ctrl-space {
unbind "space"; unbind "<ctrl>space";
} }
GdMainListView{ /* Use widget for libgd classes, since they aren't updated
-gtk-key-bindings: UnbindSpace; to gtk+-3.20 css naming yet. */
} flowbox, treeview, widget {
GdMainView{ -gtk-key-bindings: unbind-ctrl-space;
-gtk-key-bindings: UnbindSpace;
-gtk-key-bindings: UnbindSpace;
} }
.cover{ .cover{
padding-left:24px; padding-left:24px;
} }
...@@ -49,7 +49,7 @@ ...@@ -49,7 +49,7 @@
<object class="GtkShortcutsShortcut"> <object class="GtkShortcutsShortcut">
<property name="visible">True</property> <property name="visible">True</property>
<property name="title" translatable="yes" context="shortcut window">Play/Pause</property> <property name="title" translatable="yes" context="shortcut window">Play/Pause</property>
<property name="accelerator">&lt;Primary&gt;P</property> <property name="accelerator">&lt;Ctrl&gt;space &lt;Primary&gt;P</property>
</object> </object>
</child> </child>
<child> <child>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment