Skip to content

Commit 9e734b6

Browse files
committed
Merge pull request matplotlib#1902 from cimarronm/native_osx_quit
Default quit keymap - support for cmd+w on OSX
2 parents 60e67e0 + 5c1c057 commit 9e734b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/matplotlib/rcsetup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -751,7 +751,7 @@ def __call__(self, s):
751751
'keymap.pan': ['p', validate_stringlist],
752752
'keymap.zoom': ['o', validate_stringlist],
753753
'keymap.save': [('s', 'ctrl+s'), validate_stringlist],
754-
'keymap.quit': [('ctrl+w', ), validate_stringlist],
754+
'keymap.quit': [('ctrl+w', 'cmd+w'), validate_stringlist],
755755
'keymap.grid': ['g', validate_stringlist],
756756
'keymap.yscale': ['l', validate_stringlist],
757757
'keymap.xscale': [['k', 'L'], validate_stringlist],

matplotlibrc.template

+1-1
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ text.hinting_factor : 8 # Specifies the amount of softness for hinting in the
433433
#keymap.pan : p # pan mnemonic
434434
#keymap.zoom : o # zoom mnemonic
435435
#keymap.save : s # saving current figure
436-
#keymap.quit : ctrl+w # close the current figure
436+
#keymap.quit : ctrl+w, cmd+w # close the current figure
437437
#keymap.grid : g # switching on/off a grid in current axes
438438
#keymap.yscale : l # toggle scaling of y-axes ('log'/'linear')
439439
#keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear')

0 commit comments

Comments
 (0)