From a37ce8f8028a31697d5f53a21b562cab47f68e07 Mon Sep 17 00:00:00 2001 From: rom1win Date: Fri, 13 Aug 2021 16:06:29 +0200 Subject: [PATCH] NXDRIVE-2730: Fix keyPressEvent method (#3014) --- nxdrive/gui/custom_window.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nxdrive/gui/custom_window.py b/nxdrive/gui/custom_window.py index 62dcfa1af6..6e153330bb 100644 --- a/nxdrive/gui/custom_window.py +++ b/nxdrive/gui/custom_window.py @@ -16,6 +16,8 @@ def keyPressEvent(self, event: QKeyEvent) -> None: # Did the user press the Escape key? if event.key() == qt.Key_Escape: self.showNormal() + else: + super().keyPressEvent(event) def _handle_visibility_change(self, visibility: QWindow.Visibility) -> None: if visibility == QWindow.Visibility.FullScreen: