changeset 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 3002704318e3
children 9ef01266e3fe
files cagou/core/cagou_main.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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: