changeset 152:b9fd83292fc4

core: disabled Kivy's default behaviour of displaying settings on F1
author Goffi <goffi@goffi.org>
date Fri, 27 Apr 2018 16:35:53 +0200
parents 3a05dfa27f5e
children e0985834f8eb
files cagou/core/cagou_main.py
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Sat Apr 14 20:10:19 2018 +0200
+++ b/cagou/core/cagou_main.py	Fri Apr 27 16:35:53 2018 +0200
@@ -226,6 +226,11 @@
 class CagouApp(App):
     """Kivy App for Cagou"""
 
+    def _install_settings_keys(self, window):
+        # we don't want default Kivy's behaviour of displaying
+        # a settings screen when pressing F1 or platform specific key
+        return
+
     def build(self):
         Window.bind(on_keyboard=self.key_input)
         return CagouRootWidget(Label(text=u"Loading please wait"))