Interface MousetrapStatic

Index

Properties

Methods

Properties

public stopCallback: (e: ExtendedKeyboardEvent, element: Element, combo: string) => boolean

Methods

public bind(keys: string, callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string)

Parameters

  • keys: string
  • callback: (e: ExtendedKeyboardEvent, combo: string) => any
  • action?: string optional

public bind(keyArray: Array<string>, callback: (e: ExtendedKeyboardEvent, combo: string) => any, action?: string)

Parameters

  • keyArray: Array<string>
  • callback: (e: ExtendedKeyboardEvent, combo: string) => any
  • action?: string optional

public reset()

public trigger(keys: string, action?: string)

Parameters

  • keys: string
  • action?: string optional

public unbind(keys: string, action?: string)

Parameters

  • keys: string
  • action?: string optional

public unbind(keyArray: Array<string>, action?: string)

Parameters

  • keyArray: Array<string>
  • action?: string optional