CopyQ icon indicating copy to clipboard operation
CopyQ copied to clipboard

Doubled ampersands in desktop applet's drop down menu

Open mrkskwsnck opened this issue 9 years ago • 1 comments

I am using CopyQ v3.0.3 installed on Ubuntu Budgie 17.04 Zesty Zapus.

When copying an ampersand (e.g. "Tom & Jerry") to the clipboard, in the desktop applet drop down menu the ampersand is shown twice then (e.g. "Tom && Jerry").

image

Though pasting the copyied text results correctly with one ampersand only. So I suppose it's just an interface view issue.

mrkskwsnck avatar Aug 18 '17 12:08 mrkskwsnck

I cannot test this properly but looks like a bug in Qt.

For menu items, character after & is used for mnemonics, i.e. &Help would show up in menu as "Help" with underlined "H" and the menu item can be quickly accessed by pressing H key.

Special case is && which just shows up as single & without any mnemonic being created. But in this case it doesn't work. I think the problem is in qtbase code in function QDBusMenuItem::convertMnemonic().

Note: This was handled properly with libdbusmenu-qt which was needed for older Qt version.

Can you submit a bug report for Qt?

hluk avatar Aug 18 '17 15:08 hluk