Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Avoid accelerator clashes on dynamic context menus
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Maxim
Ketchup Master

59 Posts

Posted - May 14 2009 :  05:01:55 AM  Show Profile  Reply with Quote
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.

feline
Whole Tomato Software

United Kingdom
18941 Posts

Posted - May 15 2009 :  12:45:19 PM  Show Profile  Reply with Quote
This is an interesting idea and we are considering doing something like this:

case=802

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Jun 12 2009 :  9:20:31 PM  Show Profile  Reply with Quote
This request became case=26981.
case=26981 is implemented in build 1727 for a number of the menus
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000