From 0ca12de93dbba376ddc297cd9a6c64982d2db628 Mon Sep 17 00:00:00 2001 From: Jody Klymak Date: Fri, 26 Feb 2021 13:08:20 -0800 Subject: [PATCH] Backport PR #19577: Fix "return"->"enter" mapping in key names. --- lib/matplotlib/cbook/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/matplotlib/cbook/__init__.py b/lib/matplotlib/cbook/__init__.py index df1830e9ad2e..79da52c7434c 100644 --- a/lib/matplotlib/cbook/__init__.py +++ b/lib/matplotlib/cbook/__init__.py @@ -2308,7 +2308,7 @@ def _unikey_or_keysym_to_mplkey(unikey, keysym): if key.endswith(("_l", "_r")): # alt_l, ctrl_l, shift_l. key = key[:-2] key = { - "enter": "return", + "return": "enter", "prior": "pageup", # Used by tk. "next": "pagedown", # Used by tk. }.get(key, key) 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