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 filesBrowse files
authored
more robust check for enter key in TextBox (#19262)
1 parent 5417682 commit fce0ee8
Copy full SHA for fce0ee8

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/widgets.py

Copy file name to clipboardExpand all lines: lib/matplotlib/widgets.py
+1-1Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.