Collective-Software / ClickPaste

Windows 10 notification area app in C# that can paste clipboard contents as keystrokes to whatever location you click.
BSD 3-Clause "New" or "Revised" License
400 stars 29 forks source link

Problem with diacritics #15

Open janz1961 opened 10 months ago

janz1961 commented 10 months ago

This may not be possible to fix (at least not easily).

When you use an international keyboard, there is a neat way to type characters like Ä. You type a quote first and then the character. But, if your copy-paste buffer contains a quote, this also triggers this behavior.

For example, I paste a piece of Powershell containing a line as this:

"Alert: something went wrong"

This is pastes as:

Älert: something went wrong"

And then something is wrong indeed. Maybe there is a way around this like (pseudo code because I wouldn't know how to do it in any language :-) ):

#Start paste savekeyboard = GetKeyboard() SetKeyboard(KeyboardWithoutThisBehavior)

DoPaste()

SetKeyboard(savekeyboard)

f3rrix commented 9 months ago

Open to suggestions. One possible problem I can think of is that other keyboards have other meanings for the same key codes too. It's unclear to me what the "right" approach to these things would be.