changeset 165:e6ec8ff62d87

core: toggle fullscreen on F11
author Goffi <goffi@goffi.org>
date Sat, 28 Apr 2018 12:46:50 +0200
parents 60b2b2bad747
children 37220459e93d
files cagou/core/cagou_main.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Sat Apr 28 12:31:48 2018 +0200
+++ b/cagou/core/cagou_main.py	Sat Apr 28 12:46:50 2018 +0200
@@ -281,6 +281,12 @@
         # we disable [esc] handling, because default action is to quit app
         if key == 27:
             return True
+        elif key == 292:
+            if not Window.fullscreen:
+                window.fullscreen = 'auto'
+            else:
+                window.fullscreen = False
+            return True
         else:
             return False