classification
Title: IDLE: Menu accelerator conflict between Format and Options
Type: enhancement Stage: needs patch
Components: IDLE Versions: Python 3.3, Python 3.2, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: serwy, terry.reedy
Priority: normal Keywords: patch

Created on 2011-11-02 01:03 by serwy, last changed 2011-12-08 04:23 by serwy.

Files
File name Uploaded Description Edit
issue13319.patch serwy, 2011-12-08 04:23 review
Messages (6)
msg146819 - (view) Author: Roger Serwy (serwy) * Date: 2011-11-02 01:03
This is a minor interface issue. The accelerator for opening the _Options menu in an editor conflicts with the F_ormat menu. 

I suggest changing the Options accelerator to "i" since Alt-t is for toggling tabs. (Perhaps the accelerator for <<toggle-tabs>> should be dropped, so that the options menu could be accessed by Alt-t.)
msg147054 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-11-04 22:34
The conflict is not fatal for keyboard users because repeating alt-o switches between Format and Options. To resolve the conflict, I would prefer to keep alt-o for Options, both because it is the first letter of Options and because Options appears on Shell windows. The only non-conflicting character in Format is 'a'.
msg147062 - (view) Author: Roger Serwy (serwy) * Date: 2011-11-05 00:20
Which platform are you running? 

On Linux (Ubuntu 11.10, Python 3.2, Tk 8.5), Alt-o does not toggle between Format and Options. The first Alt-o selects "Format" and the second Alt-o selects "Comment Out Region". 

Changing Format's accelerator to "a" would be inconsistent with other applications that use "o", such as LibreOffice and Abiword. Consistency aside, changing Format to "a" would be the simplest fix.
msg147064 - (view) Author: Terry J. Reedy (terry.reedy) * (Python committer) Date: 2011-11-05 00:28
Py 3.2 on Win 7. 'Comment out region' is Alt-3 here.
msg147065 - (view) Author: Roger Serwy (serwy) * Date: 2011-11-05 00:51
Alt-3 is comment-out region on Linux as well. The problem is that "o" is an accelerator for "Comment Out Region" under the Format menu. Pressing "Alt-o and o" under Linux is equivalent to "Alt-o and Alt-o".

This toggling between Format and Options may be a Tk bug under Linux since it works on Win7.
msg149017 - (view) Author: Roger Serwy (serwy) * Date: 2011-12-08 04:23
Attached is a patch to have Alt-i bring up the Options menu.
History
Date User Action Args
2011-12-08 04:23:36serwysetfiles: + issue13319.patch
keywords: + patch
messages: + msg149017
2011-11-05 00:51:15serwysetmessages: + msg147065
2011-11-05 00:28:59terry.reedysetmessages: + msg147064
2011-11-05 00:20:57serwysetmessages: + msg147062
2011-11-04 22:34:46terry.reedysetversions: - Python 2.6, Python 3.1, Python 3.4
nosy: + terry.reedy

messages: + msg147054

stage: needs patch
2011-11-02 01:03:56serwycreate