From 0587cf58ed4752fda01c14caa06ecc1084805f0d Mon Sep 17 00:00:00 2001 From: Boris Yumankulov Date: Wed, 11 Jun 2025 18:20:48 +0500 Subject: [PATCH] feat(input_manager): open system overlay by Insert button Signed-off-by: Boris Yumankulov --- portprotonqt/input_manager.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/portprotonqt/input_manager.py b/portprotonqt/input_manager.py index ce2def4..e76f158 100644 --- a/portprotonqt/input_manager.py +++ b/portprotonqt/input_manager.py @@ -491,6 +491,12 @@ class InputManager(QObject): focused = QApplication.focusWidget() popup = QApplication.activePopupWidget() + # Open system overlay with Insert + if key == Qt.Key.Key_Insert: + if not popup and not isinstance(QApplication.activeWindow(), QDialog): + self._parent.openSystemOverlay() + return True + # Close application with Ctrl+Q if key == Qt.Key.Key_Q and modifiers & Qt.KeyboardModifier.ControlModifier: app.quit()