Shell icon indicating copy to clipboard operation
Shell copied to clipboard

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

Open andreaxhearts opened this issue 1 year ago • 0 comments

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")
	}
}

andreaxhearts avatar Sep 05 '24 03:09 andreaxhearts