DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Texts in Quick Paste menu is not escaped for &  (Read 6,364 times)

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
Texts in Quick Paste menu is not escaped for &
« on: October 25, 2008, 05:24 PM »
I just noticed that the texts in the Quick Paste menu is not escaped for the ampersand (&). The problem is that this affects the keyboard shortcuts.

See this:

[attachimg=#]

Note that item B is not underscored but that the "s" in "undefinedsUrl" is underscored. Actually, it should be "undefined&s", but the "&s" is given unescaped to Windows, which then interprets it as a shortcut.

I noticed it because I often press Ctrl+½ (my shortcut to Quick Paste) and then S1 to paste my e-mail address, but this time it doesn't work, because the S matches the item B.

The solution is simple: Escape all "&" characters before passing any "unknown" texts on to the Windows interface.

Jesper

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 40,931
    • Gathering Badge
    • Plugin Coding Medal
    • Participated in NANY Challenge Seventeen Times
    • Cody Award
    • Coding Snacks
    • Volunteers/Staff
Re: Texts in Quick Paste menu is not escaped for &
« Reply #1 on: October 26, 2008, 02:04 AM »
Thank you, i will fix.  :up:
(there will be a new CHS release in next week or so)

Jesper Hertel

  • Charter Member
  • Joined in 2006
  • ***
  • Posts: 103
Re: Texts in Quick Paste menu is not escaped for &
« Reply #2 on: October 26, 2008, 07:00 PM »
Thanks, mouser! :)

I don't know how I could live without your programs before I discovered them - especially Find and Run Robot, Clipboard Help+Spell, and ScreenshotCaptor! :-*

Original address: https://www.donationcoder.com/forum/index.php?topic=15487.0