From 5c1c05759084d95ea26814255fd56d47747d3c10 Mon Sep 17 00:00:00 2001 From: Cimarron Mittelsteadt Date: Fri, 12 Apr 2013 13:29:01 -0700 Subject: [PATCH] Updated default quit keymap to include cmd+w so people running on OS X would have a native cmd+w to close the window. --- lib/matplotlib/rcsetup.py | 2 +- matplotlibrc.template | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/matplotlib/rcsetup.py b/lib/matplotlib/rcsetup.py index bea9e7eea098..5a1e6633c7a6 100644 --- a/lib/matplotlib/rcsetup.py +++ b/lib/matplotlib/rcsetup.py @@ -750,7 +750,7 @@ def __call__(self, s): 'keymap.pan': ['p', validate_stringlist], 'keymap.zoom': ['o', validate_stringlist], 'keymap.save': [('s', 'ctrl+s'), validate_stringlist], - 'keymap.quit': [('ctrl+w', ), validate_stringlist], + 'keymap.quit': [('ctrl+w', 'cmd+w'), validate_stringlist], 'keymap.grid': ['g', validate_stringlist], 'keymap.yscale': ['l', validate_stringlist], 'keymap.xscale': [['k', 'L'], validate_stringlist], diff --git a/matplotlibrc.template b/matplotlibrc.template index 64f802233b19..5b0d9835b40a 100644 --- a/matplotlibrc.template +++ b/matplotlibrc.template @@ -432,7 +432,7 @@ text.hinting_factor : 8 # Specifies the amount of softness for hinting in the #keymap.pan : p # pan mnemonic #keymap.zoom : o # zoom mnemonic #keymap.save : s # saving current figure -#keymap.quit : ctrl+w # close the current figure +#keymap.quit : ctrl+w, cmd+w # close the current figure #keymap.grid : g # switching on/off a grid in current axes #keymap.yscale : l # toggle scaling of y-axes ('log'/'linear') #keymap.xscale : L, k # toggle scaling of x-axes ('log'/'linear') pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy