Skip to content

Commit

Permalink
Merge pull request #3601 from rokgomiscek/AlignFreezeShortcuts
Browse files Browse the repository at this point in the history
[ENH] Added keyboard shortcuts for Align & Freeze/Unfreeze
  • Loading branch information
janezd authored Feb 15, 2019
2 parents 4fcdc10 + dd80915 commit a5e85be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion Orange/canvas/application/canvasmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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")
)
Expand Down
3 changes: 2 additions & 1 deletion Orange/canvas/document/schemeedit.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
)

Expand Down

0 comments on commit a5e85be

Please sign in to comment.