Skip to content

Commit

Permalink
Merge pull request matplotlib#7749 from petehuang/sync-fullscreen-sho…
Browse files Browse the repository at this point in the history
…rtcuts

DOC: Sync keyboard shortcuts for fullscreen toggle
  • Loading branch information
tacaswell committed Jan 7, 2017
1 parent 791aafe commit f964bcd
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion doc/users/navigation_toolbar.rst
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ Forward **v** or **right arrow**
Pan/Zoom **p**
Zoom-to-rect **o**
Save **ctrl** + **s**
Toggle fullscreen **ctrl** + **f**
Toggle fullscreen **f** or **ctrl** + **f**
Close plot **ctrl** + **w**
Constrain pan/zoom to x axis hold **x** when panning/zooming with mouse
Constrain pan/zoom to y axis hold **y** when panning/zooming with mouse
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/backend_bases.py
Original file line number Diff line number Diff line change
Expand Up @@ -2496,7 +2496,7 @@ def key_press_handler(event, canvas, toolbar=None):
toggle_xscale_keys = rcParams['keymap.xscale']
all = rcParams['keymap.all_axes']

# toggle fullscreen mode (default key 'f')
# toggle fullscreen mode ('f', 'ctrl + f')
if event.key in fullscreen_keys:
try:
canvas.manager.full_screen_toggle()
Expand Down
2 changes: 1 addition & 1 deletion matplotlibrc.template
Original file line number Diff line number Diff line change
Expand Up @@ -587,7 +587,7 @@ backend : $TEMPLATE_BACKEND
# Customize these settings according to your needs.
# Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '')

#keymap.fullscreen : f # toggling
#keymap.fullscreen : f, ctrl+f # toggling
#keymap.home : h, r, home # home or reset mnemonic
#keymap.back : left, c, backspace # forward / backward keys to enable
#keymap.forward : right, v # left handed quick navigation
Expand Down

0 comments on commit f964bcd

Please sign in to comment.