Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Avoid accelerator clashes on dynamic context menus

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Maxim Posted - May 14 2009 : 05:01:55 AM
Certain menus are dynamically populated, for example the snippets and paste menus, but they just make the first letter of every entry be the accelerator; this often leads to duplicates. There's a couple of ways around this:

1. Hold a list of already-assigned accelerators and try to find an unused one for each new entry. Entries near the top are more likely to "win" their first letter. It might fail on large menus/small titles, just fall back to the duplicates in that case.

2. A complex and hard to write algorithm that tries to avoid the failures in (1) by identifying the failures and then prioritising them, doing a few iterations to try to get an optimal result.

3. Prepend a number as the accelerator. I'd be happy to see the Paste and Alt+G menus look like

1. Foo
2. Bar
[...]
9. Warg
a. Fred
b. Plugh

but the snippets menus would be better with more contextual accelerators.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Jun 12 2009 : 9:20:31 PM
This request became case=26981.
case=26981 is implemented in build 1727 for a number of the menus
feline Posted - May 15 2009 : 12:45:19 PM
This is an interesting idea and we are considering doing something like this:

case=802

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000