From 67db598b026800ef9035177516820bfcd7f4214c Mon Sep 17 00:00:00 2001 From: Salvo 'LtWorf' Tomaselli Date: Sat, 2 Jan 2016 16:24:15 +0100 Subject: [PATCH] Shortcut to show relation Pressing space on a selected relation shows it. I wanted to use 'Enter' but it doesn't work. This closes #5 --- relational_gui/guihandler.py | 1 + 1 file changed, 1 insertion(+) diff --git a/relational_gui/guihandler.py b/relational_gui/guihandler.py index 2ecf5b8..1c72d7c 100644 --- a/relational_gui/guihandler.py +++ b/relational_gui/guihandler.py @@ -70,6 +70,7 @@ class relForm(QtWidgets.QMainWindow): # Shortcuts shortcuts = ( (self.ui.lstRelations, QtGui.QKeySequence.Delete, self.unloadRelation), + (self.ui.lstRelations, 'Space', lambda: self.printRelation(self.ui.lstRelations.currentItem())), (self.ui.txtQuery, QtGui.QKeySequence.MoveToNextLine, self.next_history), (self.ui.txtQuery, QtGui.QKeySequence.MoveToPreviousLine, self.prev_history), )