RickStrahl / MarkdownMonster

An extensible Markdown Editor, Viewer and Weblog Publisher for Windows
https://markdownmonster.west-wind.com
Other
1.59k stars 235 forks source link

Prevent empty copy/cut from overwriting paste buffer #1127

Closed internationils closed 3 weeks ago

internationils commented 3 months ago

When copy-pasting, it can happen that you

This deletes the paste buffer since nothing is selected. If nothing is selected, ctrl-X/C should not touch the paste buffer.

RickStrahl commented 3 months ago

I've run into this as well, but... I don't think it's wise to break standard copy/paste behavior for our fat fingering. There are legitimate reasons for wanting to clear the clipboard with empty text.

Every other text editor has this same - standard - clipboard behavior.

internationils commented 3 months ago

I'm switching a lot between a laptop keyboard and a full-sized normal keyboard and it's driving me nuts : ) That said, your logic makes sense. An Option might be nice though...