Page 1 of 1

CFA & Menu accelerator

Posted: 18 Jan 2024 19:03
by MBaas
I have 2 CFAs that use the same menu accelerator ("&V").

When this happens in other menus, the usual way of dealing with it is to jump from one matching item to the next. However, pressing "V" on #176 (with the first item also matching V) selects the 2nd matching item...

I hope the description is clear, but here's a screenshot, too:
18-01-2024_18-59-54.png

Re: CFA & Menu accelerator

Posted: 19 Jan 2024 09:13
by admin
This popup menu is a Windows control, and it's controlled by Windows.

I made a simple version of your case and it works fine here:

Code: Select all

text popupmenu("HTML CSS &Validator|&View");

Re: CFA & Menu accelerator

Posted: 19 Jan 2024 09:38
by MBaas
That works fine here as well.
But the CFA still behaves as it does, so there must be more to it...

Re: CFA & Menu accelerator

Posted: 19 Jan 2024 11:05
by admin
Tried to replicate it with CFA but again it works fine. Can you post your CFA definitions relevant to this menu?

Re: CFA & Menu accelerator

Posted: 19 Jan 2024 11:24
by MBaas
Sure, here they are:

Code: Select all

"Html & CSS &Validator|C:\Program Files\HTMLValidator240\chv240.exe" htm;html;css > ::run "C:\Program Files\HTMLValidator240\chv240.exe" "<curitem>"
"&HtmlPad|C:\Program Files (x86)\HTMLPad 2022\htmlpad.exe" html>::run "C:\Program Files (x86)\HTMLPad 2022\htmlpad.exe" "<curitem>"
|"&View|C:\Program Files (x86)\V\v.exe" *>::run lax("C:\Program Files (x86)\V\v.exe" -TEXT  "<curitem>");
|"View &tail|C:\Program Files (x86)\V\v.exe" *>::run lax("C:\Program Files (x86)\V\v.exe" -TEXT  -E -T "<curitem>");
I hope it repros (on an .html file).

Re: CFA & Menu accelerator

Posted: 19 Jan 2024 12:08
by admin
Got it. It's the & in "Html & CSS". Escape it by doubling it: Html && CSS

Re: CFA & Menu accelerator

Posted: 19 Jan 2024 12:11
by MBaas
Aaaaah - I didn't notice that! :oops: Thanks!