Skip to content

Commit c032fc1

Browse files
committed
Sync keyboard shortcuts for fullscreen toggle
1 parent 1fa4dd7 commit c032fc1

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

doc/users/navigation_toolbar.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ Forward **v** or **right arrow**
9393
Pan/Zoom **p**
9494
Zoom-to-rect **o**
9595
Save **ctrl** + **s**
96-
Toggle fullscreen **ctrl** + **f**
96+
Toggle fullscreen **f** or **ctrl** + **f**
9797
Close plot **ctrl** + **w**
9898
Close all plots **shift** + **w**
9999
Constrain pan/zoom to x axis hold **x** when panning/zooming with mouse

lib/matplotlib/backend_bases.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2486,7 +2486,7 @@ def key_press_handler(event, canvas, toolbar=None):
24862486
toggle_xscale_keys = rcParams['keymap.xscale']
24872487
all_keys = rcParams['keymap.all_axes']
24882488

2489-
# toggle fullscreen mode (default key 'f')
2489+
# toggle fullscreen mode ('f', 'ctrl + f')
24902490
if event.key in fullscreen_keys:
24912491
try:
24922492
canvas.manager.full_screen_toggle()

matplotlibrc.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -587,7 +587,7 @@ backend : $TEMPLATE_BACKEND
587587
# Customize these settings according to your needs.
588588
# Leave the field(s) empty if you don't need a key-map. (i.e., fullscreen : '')
589589

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

0 commit comments

Comments
 (0)