KeyboardEvent.isUnmodifiedCharacter

Returns true if this keyboard event represents a normal character keystroke, with no extraordinary modifier keys depressed.

Shift is considered an ordinary modifier except in the cases of tab, backspace, enter, and the space bar, since it is a normal part of entering many other characters.

struct KeyboardEvent
bool
isUnmodifiedCharacter
()

Meta

History

Added December 4, 2020.