[issue27621] incorrectly works in IDLE Query dialogs

2016-07-27 Thread Mark Roseman
Mark Roseman added the comment: Side note that on Mac OS X, buttons normally don't get the focus, so that this isn't an issue. Well except that buttons are getting the focus here. :-) Also since we're reinventing the wheel, please note that alternative keyboard shortcuts (e.g. command-period

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: This is against the convention. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubs

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Steven D'Aprano
Steven D'Aprano added the comment: I expect that ESC should always cancel, and RETURN/ENTER should always accepts (OK or Save or whatever the "main" button is) regardless of where the focus is. If you want a keyboard shortcut to push the button with focus, use SPACE, not ENTER. -- nos

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: I have wrote similar patch. There are many ways to fix this issue. Tk code for dialog widgets is more complex and general. -- keywords: +patch Added file: http://bugs.python.org/file43891/idle_query_press_return.patch

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: I made this a dependency of #27620. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsu

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-26 Thread Terry J. Reedy
Terry J. Reedy added the comment: While writing #27620 and adding a binding to Query for , a few hours ago, I realized that this would be the case, that it could be considered a bug, and that the fix will be a 'return' function that looks at the focus before invoking [Ok] (the default) or [Can

[issue27621] incorrectly works in IDLE Query dialogs

2016-07-25 Thread Serhiy Storchaka
New submission from Serhiy Storchaka: When open new Query dialog in IDLE (e.g. "Open Module" dialog), move a focus on the Cancel button and press on keyboard, the OK button is invoked instead of Cancel. -- assignee: terry.reedy components: IDLE messages: 271326 nosy: serhiy.storchaka,