Skip to content

Commit

Permalink
NXDRIVE-2730: Fix keyPressEvent method (#3014)
Browse files Browse the repository at this point in the history
  • Loading branch information
rom1win committed Aug 13, 2021
1 parent 71639b5 commit a37ce8f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions nxdrive/gui/custom_window.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit a37ce8f

Please sign in to comment.