ListView.KeyDown <Ctrl>
event shows the following:
e KeyData = LButton | ShiftKey | Control
base {KeyData = LButton | ShiftKey | Control}
Alt false bool
Control true bool
Handled false bool
KeyCode LButton | ShiftKey
KeyData LButton | ShiftKey | Control
KeyValue 17
Modifiers
Shift false bool
SuppressKeyPress false bool
I don't like the fact that the <ShiftKey>
is showing up but the Control key is showing up.
On ListView.KeyUp <Ctrl>
event shows the following:
- e {KeyData = LButton | ShiftKey}
+ base {KeyData = LButton | ShiftKey}
Alt false bool
Control false bool
Handled false bool
KeyCode LButton | ShiftKey
KeyData LButton | ShiftKey
KeyValue 17
Modifiers None
Shift false bool
SuppressKeyPress false
What gives it's weird. Look over the web to see if there are any examples of this error but could find nothing. I have tried setting the KeyPreview to true on the hosting form to no avail.
Any input is welcome.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…