Closed img02 closed 2 years ago
I had an issue with the shift key being stuck in a key down state, and this fixes it.
I haven't done a deep dive, only found the repo today, but I changed:
structInput.u.ki.dwFlags = KEYEVENTF_KEYUP; if (shift && key.ShiftKey == VKeys.NULL) {..}
to
if (shift) {..}
and everything is working. If ShiftType shift was true, ShiftKey should never be null, right?
Also updated the demo to add an exclamation mark to 'hello world' and demonstrate ShiftKey / ShiftType.
LGTM
I had an issue with the shift key being stuck in a key down state, and this fixes it.
I haven't done a deep dive, only found the repo today, but I changed:
to
and everything is working. If ShiftType shift was true, ShiftKey should never be null, right?
Also updated the demo to add an exclamation mark to 'hello world' and demonstrate ShiftKey / ShiftType.