Skip to content

Commit

Permalink
Add Ctrl-W shortcut to close editor window
Browse files Browse the repository at this point in the history
  • Loading branch information
Todd Scopio committed May 31, 2018
1 parent 838bfe4 commit eee0a61
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/tools/partedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 """
Expand Down

0 comments on commit eee0a61

Please sign in to comment.