diff cagou/core/cagou_main.py @ 165:e6ec8ff62d87

core: toggle fullscreen on F11
author Goffi <goffi@goffi.org>
date Sat, 28 Apr 2018 12:46:50 +0200
parents a5e8833184c6
children 37220459e93d
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