Why does KeyEventArgs.KeyCode show a set of incorrect keys when debugging?

103 Views Asked by At

When processing a KeyDown event for the Delete key, the KeyCode shows up as

RButton | MButton | Back | Space

enter image description here

I can determine from the Keys enum that

RButton = 2
MButton = 4
Back = 8
Space = 32

Delete = 46

and

2 + 4 + 8 + 32 = 46

But why is this?

0

There are 0 best solutions below