The difference between the KeyPress and KeyDown, KeyUp

 

  1. KeyPress is mainly used to capture digital (note: including the Shift + sign of the number), letters (note: including capitalization), keypad, etc. In addition to F1-12, SHIFT, Alt, Ctrl, Insert, Home, PgUp, Delete, End, PgDn , outside ScrollLock, Pause, NumLock, {} menu key, start key} {ANSI character direction keys
  2. KeyDown and KeyUp PrScrn generally can capture all the keys except the keyboard (not discussed here special special keyboard keys)
  3. KeyPress can only capture a single character
  4. KeyDown and KeyUp can capture key combination.
  5. KeyPress can capture the case of a single character
  6. KeyDown and KeyUp KeyValue captured for each single character values ​​are the same, the case is not a single character is determined.
  7. KeyPress does not distinguish between numeric keypad and the main character keyboard.
  8. KeyDown and KeyUp distinguish numeric keypad and the main character keyboard.
  9. Which PrScrn button KeyPress, KeyDown and KeyUp can not capture.

Guess you like

Origin www.cnblogs.com/qihang0/p/11386971.html