How to detect modifier key states in WPF?

前端 未结 6 1552
粉色の甜心
粉色の甜心 2020-12-04 15:10

Is there some global constructs that I can use whenever I need to access whether the Control, Shift, Alt buttons are down? For instance inside MouseDown event o

6条回答
  •  青春惊慌失措
    2020-12-04 15:24

    and as well:

    if My.Computer.Keyboard.ShiftKeyDown then ...

    My.Computer.Keyboard.CtrlKeyDown

    My.Computer.Keyboard.AltKeyDown

提交回复
热议问题