Function getModifierCode

  • Returns a 4 bit integer where each bit represents whether each modifier is pressed in the order Shift, Meta, Ctrl, Alt

    e.altKey && e.ctrlKey && e.shiftKey && !e.metaKey
    // is equivalent to
    getModifierCode(e) == 0b1011

    Parameters

    • e: KeyboardEvent

    Returns number

Generated using TypeDoc