8000 more robust check for enter key in TextBox (#19262) · matplotlib/matplotlib@fce0ee8 · GitHub
[go: up one dir, main page]

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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