Fix shortcut to exit fullscreen mode (close #71)

Fix the shortcut for fullscreen mode to also exit it. Additionally fix
the shortcuts window to show the correct shortcut for fullscreen mode.
This commit is contained in:
coderkun 2020-07-25 11:07:57 +02:00
commit ddf8368bfd
8 changed files with 115 additions and 96 deletions

View file

@ -419,7 +419,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Show the cover in fullscreen mode</property>
<signal name="clicked" handler="on_cover-toolbar-fullscreen_clicked" swapped="no"/>
<property name="action_name">win.toggle-fullscreen</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
@ -427,7 +427,6 @@
<property name="icon_name">view-fullscreen-symbolic</property>
</object>
</child>
<accelerator key="F11" signal="activate"/>
</object>
<packing>
<property name="expand">False</property>

View file

@ -17,6 +17,11 @@
<attribute name="label" translatable="yes">Clear Playlist</attribute>
<attribute name="accel">&lt;Primary&gt;r</attribute>
</item>
<item>
<attribute name="action">win.toggle-fullscreen</attribute>
<attribute name="label" translatable="yes">Toggle Fullscreen</attribute>
<attribute name="accel">F11</attribute>
</item>
</section>
<section>
<item>

View file

@ -97,7 +97,7 @@
<child>
<object class="GtkShortcutsShortcut">
<property name="visible">1</property>
<property name="accelerator">&lt;alt&gt;Return F11</property>
<property name="accelerator">F11</property>
<property name="title" translatable="yes">Show the cover in fullscreen mode</property>
</object>
</child>