Engrain by ByteRush

WEB.03.03 Mid-level

Pointer, keyboard, focus and input events

Comes up in: Web fundamentals, UI coding, Machine coding

This concept is being written. It gets the full five steps — explanation, predict, interview angle, practice with tests, and review cards. Here is exactly what it will cover, so you can study it elsewhere in the meantime.

What it covers

  • pointer events unify mouse/touch/pen
  • pointer capture
  • click on keyboard activation
  • keydown vs keyup
  • key vs code
  • IME composition events
  • input vs change
  • beforeinput

Words you will know

pointer eventcomposition eventpointer capture

What you will practise

  • drag with pointer capture
  • IME-safe search