Skip to content

Commit b4870ee

Browse files
authored
Merge pull request #19616 from meeseeksmachine/auto-backport-of-pr-19577-on-v3.4.x
Backport PR #19577 on branch v3.4.x (Fix "return"->"enter" mapping in key names.)
2 parents 6730d55 + 0ca12de commit b4870ee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/cbook/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2308,7 +2308,7 @@ def _unikey_or_keysym_to_mplkey(unikey, keysym):
23082308
if key.endswith(("_l", "_r")): # alt_l, ctrl_l, shift_l.
23092309
key = key[:-2]
23102310
key = {
2311-
"enter": "return",
2311+
"return": "enter",
23122312
"prior": "pageup", # Used by tk.
23132313
"next": "pagedown", # Used by tk.
23142314
}.get(key, key)

0 commit comments

Comments
 (0)