From 1b2742e63ab6d624d059c7717672d79b40577fed Mon Sep 17 00:00:00 2001 From: Rok Gomiscek Date: Fri, 15 Feb 2019 10:12:48 +0100 Subject: [PATCH 1/3] Added keyboard shortcut for Freeze signal propagation. squash freeze --- Orange/canvas/application/canvasmain.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Orange/canvas/application/canvasmain.py b/Orange/canvas/application/canvasmain.py index 500100a80da..25b42804932 100644 --- a/Orange/canvas/application/canvasmain.py +++ b/Orange/canvas/application/canvasmain.py @@ -632,9 +632,10 @@ def setup_actions(self): self.freeze_action = \ QAction(self.tr("Freeze"), self, + shortcut=QKeySequence("Shift+F"), objectName="signal-freeze-action", checkable=True, - toolTip=self.tr("Freeze signal propagation."), + toolTip=self.tr("Freeze signal propagation. (Shift+F)"), toggled=self.set_signal_freeze, icon=canvas_icons("Pause.svg") ) From 7a2a2f0ed950aab4139e078074e3cc83bfc90cec Mon Sep 17 00:00:00 2001 From: Rok Gomiscek Date: Fri, 15 Feb 2019 10:13:29 +0100 Subject: [PATCH 2/3] Added keyboard shortcut for Align widgets to a grid. --- Orange/canvas/document/schemeedit.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Orange/canvas/document/schemeedit.py b/Orange/canvas/document/schemeedit.py index 3e20152791f..102db1786e1 100644 --- a/Orange/canvas/document/schemeedit.py +++ b/Orange/canvas/document/schemeedit.py @@ -185,7 +185,8 @@ def __setupActions(self): self.__cleanUpAction = \ QAction(self.tr("Clean Up"), self, objectName="cleanup-action", - toolTip=self.tr("Align widgets to a grid."), + shortcut=QKeySequence("Shift+A"), + toolTip=self.tr("Align widgets to a grid. (Shift+A)"), triggered=self.alignToGrid, ) From dd80915f9babecd2877a9b73808604ad0f25da61 Mon Sep 17 00:00:00 2001 From: janezd Date: Fri, 15 Feb 2019 16:05:09 +0100 Subject: [PATCH 3/3] Remove periods in tooltips for align and freeze shortcuts --- Orange/canvas/application/canvasmain.py | 2 +- Orange/canvas/document/schemeedit.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Orange/canvas/application/canvasmain.py b/Orange/canvas/application/canvasmain.py index 25b42804932..f652d752a55 100644 --- a/Orange/canvas/application/canvasmain.py +++ b/Orange/canvas/application/canvasmain.py @@ -635,7 +635,7 @@ def setup_actions(self): shortcut=QKeySequence("Shift+F"), objectName="signal-freeze-action", checkable=True, - toolTip=self.tr("Freeze signal propagation. (Shift+F)"), + toolTip=self.tr("Freeze signal propagation (Shift+F)"), toggled=self.set_signal_freeze, icon=canvas_icons("Pause.svg") ) diff --git a/Orange/canvas/document/schemeedit.py b/Orange/canvas/document/schemeedit.py index 102db1786e1..fdcd4825d65 100644 --- a/Orange/canvas/document/schemeedit.py +++ b/Orange/canvas/document/schemeedit.py @@ -186,7 +186,7 @@ def __setupActions(self): QAction(self.tr("Clean Up"), self, objectName="cleanup-action", shortcut=QKeySequence("Shift+A"), - toolTip=self.tr("Align widgets to a grid. (Shift+A)"), + toolTip=self.tr("Align widgets to a grid (Shift+A)"), triggered=self.alignToGrid, )