From eee0a618c12cc0373e824c89896fd0c0487e9fd9 Mon Sep 17 00:00:00 2001 From: Todd Scopio Date: Thu, 31 May 2018 08:30:23 -0700 Subject: [PATCH] Add Ctrl-W shortcut to close editor window --- src/tools/partedit.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/tools/partedit.py b/src/tools/partedit.py index 5ebe4de9..9a6359bb 100644 --- a/src/tools/partedit.py +++ b/src/tools/partedit.py @@ -909,6 +909,11 @@ def __init__(self, parent=None): self.data.dirtied.connect(self.dataDirtiedSlot) + + # Configure ctrl-w to close the window + QShortcut( QKeySequence(Qt.CTRL + Qt.Key_W), self, self.close ) + + #-------------------------------------------------------------------------- def openSlot(self): """ Callback from Open button """