We have a WPF window hosted in Win32 Window. The implementation is such that when user presses CTRL+V, the text in clipboard is pasted to the TextBox in KeyUp event and not in KeyDown event (due to limitation with TextBox control when being hosted inside MFC). Hence we have overridden KeyUp event to paste the text.
However, in some machines it was noticed that the text is pasted twice on doing CTRL+V only once. On further investigation found that it is pasted for KeyDown (default window behaviour) and also on KeyUp event (overridden by us).
Wondering why is it pasting only on KeyUp even in some machine and in some machine for both KeyDown and KeyUp?
Help will be appreciated.
-Nayan