bpo-6739: IDLE: Check for valid keybinding in config_keys#2377
Conversation
terryjreedy
left a comment
There was a problem hiding this comment.
I will submit a patch that addresses all my comments.
Sorry, something went wrong.
|
I didn't see your commit until now. Your simplification of the new function was what I was thinking -- I guess the old discussion of one return vs many. And I didn't know about this -> |
Sorry, something went wrong.
|
With the patch, the function is a bit odd in the argument is replaced by modifiers and key for some of the checks. More revision is needed in a further issue. |
Sorry, something went wrong.
…onGH-2377) Verify user-entered key sequences by trying to bind them with tk. Add tests for all 3 validation functions. Original patch by G Polo. Tests added by Cheryl Sabella. (cherry picked from commit 8c78aa7)
Based on patch by Guilherme Polo.