Skip to main content

CommonKeyMove

Callable

  • CommonKeyMove(event: KeyboardEvent, allowArrowKeys?: boolean): u | d | l | r

  • Translates the current event into movement directions

    This returns a layout independent u/d/l/r string


    Parameters

    • event: KeyboardEvent
    • allowArrowKeys: boolean = true

    Returns u | d | l | r