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
This commit is contained in:
Salvo 'LtWorf' Tomaselli 2016-01-02 16:24:15 +01:00
parent 746ae6af09
commit 67db598b02

View File

@ -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),
)