Mercurial > libervia-desktop-kivy
comparison 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 |
comparison
equal
deleted
inserted
replaced
374:3002704318e3 | 375:ae9059b791fe |
---|---|
357 if not Window.fullscreen: | 357 if not Window.fullscreen: |
358 Window.fullscreen = 'auto' | 358 Window.fullscreen = 'auto' |
359 else: | 359 else: |
360 Window.fullscreen = False | 360 Window.fullscreen = False |
361 return True | 361 return True |
362 elif key == 110 and modifier == ['alt']: | 362 elif key == 110 and 'alt' in modifier: |
363 # M-n we hide/show notifications | 363 # M-n we hide/show notifications |
364 head = self.root.head_widget | 364 head = self.root.head_widget |
365 if head.height: | 365 if head.height: |
366 Animation(height=0, opacity=0, duration=0.3).start(head) | 366 Animation(height=0, opacity=0, duration=0.3).start(head) |
367 else: | 367 else: |