diff cagou/core/cagou_main.py @ 375:ae9059b791fe

core: fixed handling of M-n if other modifier (e.g. numlock) are present
author Goffi <goffi@goffi.org>
date Mon, 27 Jan 2020 21:17:09 +0100
parents 5d994be1161b
children b2a87239af25
line wrap: on
line diff
--- a/cagou/core/cagou_main.py	Mon Jan 27 21:17:09 2020 +0100
+++ b/cagou/core/cagou_main.py	Mon Jan 27 21:17:09 2020 +0100
@@ -359,7 +359,7 @@
             else:
                 Window.fullscreen = False
             return True
-        elif key == 110 and modifier == ['alt']:
+        elif key == 110 and 'alt' in modifier:
             # M-n we hide/show notifications
             head = self.root.head_widget
             if head.height: