Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Underlined/Accelerator Key Shortcut breaks when TAB "\t" used (title ampersand) #510

Open
andreaxhearts opened this issue Sep 5, 2024 · 0 comments

Comments

@andreaxhearts
Copy link

andreaxhearts commented Sep 5, 2024

This Menu Item
item(title = "&This Menu Item" image=icon.open_new_window)

...Would highlight the 'T' letter in the word this, allowing you to use the "T" key as a keyboard shortcut to select that menu item.

item(title = "This Menu Item" + "\t" + "&hello" image=icon.open_new_window)

The 'h' does show up as underlined if you hold SHIFT, but the keyboard shortcut does not work. It looks like it would, but it doesn't.
Furthermore, the real bug (if this comes from nss) is that having the \t character before any text breaks any accelerator in that title.

these (mostly) don't work

This Menu Item   hello
This Menu Item   hello


examples:


Windows Spotlight (modified to have accelerators)


menu(type='*' title= "test" + "\t" + "men&u" image=icon.open_file_location) {
	menu(title='&abc') {
		item(title="d")
	}
	menu(title='12&3'){
		item(title="4")
	}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant