pseudo-dom
    Preparing search index...

    Function keyPress

    • Press and release a key on an element (the element which has the focus, or one given): keydown and then keyup.

      Parameters

      • element: any

        The element which gets the key

      • key: string

        The value of the key, such as a or Enter

      • init: { [option: string]: any } = {}

        Options for the events (for example code, shiftKey)

      Returns boolean

      False when keydown was cancelled, so its default action did not happen