Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
17937832
Commit
17937832
authored
Jul 25, 2016
by
Terry Jan Reedy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #27620: Escape key closes Query box as cancelled.
parent
8e1d3a2d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Lib/idlelib/idle_test/htest.py
Lib/idlelib/idle_test/htest.py
+3
-3
Lib/idlelib/query.py
Lib/idlelib/query.py
+1
-0
No files found.
Lib/idlelib/idle_test/htest.py
View file @
17937832
...
...
@@ -175,8 +175,8 @@ HelpSource_spec = {
"'' and file does not exist are invalid path items.
\
n
"
"Any url ('www...', 'http...') is accepted.
\
n
"
"Test Browse with and without path, as cannot unittest.
\
n
"
"
A valid entry will be printed to shell with [0k]
\
n
"
"
or <return>. [Cancel] will print
None to shell"
"
[Ok] or <Return> prints valid entry to shell
\
n
"
"
[Cancel] or <Escape> prints
None to shell"
}
_io_binding_spec
=
{
...
...
@@ -245,7 +245,7 @@ Query_spec = {
'_htest'
:
True
},
'msg'
:
"Enter with <Return> or [Ok]. Print valid entry to Shell
\
n
"
"Blank line, after stripping, is ignored
\
n
"
"Close dialog with valid entry,
[Cancel] or
[X]"
"Close dialog with valid entry,
<Escape>, [Cancel],
[X]"
}
...
...
Lib/idlelib/query.py
View file @
17937832
...
...
@@ -53,6 +53,7 @@ class Query(Toplevel):
self
.
transient
(
parent
)
self
.
grab_set
()
self
.
bind
(
'<Key-Return>'
,
self
.
ok
)
self
.
bind
(
'<Key-Escape>'
,
self
.
cancel
)
self
.
protocol
(
"WM_DELETE_WINDOW"
,
self
.
cancel
)
self
.
parent
=
parent
self
.
message
=
message
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment