mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-31 00:11:59 +02:00
Leave fullscreen with "Esc" key
This commit is contained in:
@@ -21,6 +21,7 @@ var actions = {
|
|||||||
change_repeat: ['<Ctrl>r'],
|
change_repeat: ['<Ctrl>r'],
|
||||||
reveal_controls: ['Return'],
|
reveal_controls: ['Return'],
|
||||||
toggle_fullscreen: ['F11', 'f'],
|
toggle_fullscreen: ['F11', 'f'],
|
||||||
|
leave_fullscreen: ['Escape'],
|
||||||
quit: ['<Ctrl>q', 'q'],
|
quit: ['<Ctrl>q', 'q'],
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -85,6 +86,9 @@ function handleAction(action, window)
|
|||||||
if(clapperWidget.isFullscreenMode)
|
if(clapperWidget.isFullscreenMode)
|
||||||
clapperWidget.revealControls();
|
clapperWidget.revealControls();
|
||||||
break;
|
break;
|
||||||
|
case 'leave_fullscreen':
|
||||||
|
if(!clapperWidget.isFullscreenMode)
|
||||||
|
break;
|
||||||
case 'toggle_fullscreen':
|
case 'toggle_fullscreen':
|
||||||
clapperWidget.toggleFullscreen();
|
clapperWidget.toggleFullscreen();
|
||||||
break;
|
break;
|
||||||
|
@@ -20,6 +20,12 @@
|
|||||||
<property name="accelerator">F11 f</property>
|
<property name="accelerator">F11 f</property>
|
||||||
</object>
|
</object>
|
||||||
</child>
|
</child>
|
||||||
|
<child>
|
||||||
|
<object class="GtkShortcutsShortcut">
|
||||||
|
<property name="title" translatable="yes">Leave fullscreen</property>
|
||||||
|
<property name="accelerator">Escape</property>
|
||||||
|
</object>
|
||||||
|
</child>
|
||||||
<child>
|
<child>
|
||||||
<object class="GtkShortcutsShortcut">
|
<object class="GtkShortcutsShortcut">
|
||||||
<property name="title" translatable="yes">Reveal OSD (fullscreen only)</property>
|
<property name="title" translatable="yes">Reveal OSD (fullscreen only)</property>
|
||||||
|
Reference in New Issue
Block a user