Skip to content

Commit fce0ee8

Browse files
authored
more robust check for enter key in TextBox (#19262)
1 parent 5417682 commit fce0ee8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/widgets.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ def _keypress(self, event):
11111111
self._rendercursor()
11121112
if self.eventson:
11131113
self._observers.process('change', self.text)
1114-
if key == "enter":
1114+
if key in ["enter", "return"]:
11151115
self._observers.process('submit', self.text)
11161116

11171117
def set_val(self, val):

0 commit comments

Comments
 (0)
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