Skip to content

Commit

Permalink
Merge pull request ipython#928 from punchagan/font-size-shortcut-context
Browse files Browse the repository at this point in the history
BUG: Set context for font size change shortcuts in ConsoleWidget
  • Loading branch information
epatters committed Oct 25, 2011
2 parents 0524ce3 + e0cdeaa commit 79f0e95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions IPython/frontend/qt/console/console_widget.py
Original file line number Diff line number Diff line change
Expand Up @@ -261,20 +261,23 @@ def __init__(self, parent=None, **kw):
self.increase_font_size = QtGui.QAction("Bigger Font",
self,
shortcut=QtGui.QKeySequence.ZoomIn,
shortcutContext=QtCore.Qt.WidgetWithChildrenShortcut,
statusTip="Increase the font size by one point",
triggered=self._increase_font_size)
self.addAction(self.increase_font_size)

self.decrease_font_size = QtGui.QAction("Smaller Font",
self,
shortcut=QtGui.QKeySequence.ZoomOut,
shortcutContext=QtCore.Qt.WidgetWithChildrenShortcut,
statusTip="Decrease the font size by one point",
triggered=self._decrease_font_size)
self.addAction(self.decrease_font_size)

self.reset_font_size = QtGui.QAction("Normal Font",
self,
shortcut="Ctrl+0",
shortcutContext=QtCore.Qt.WidgetWithChildrenShortcut,
statusTip="Restore the Normal font size",
triggered=self.reset_font)
self.addAction(self.reset_font_size)
Expand Down

0 comments on commit 79f0e95

Please sign in to comment.