Home Reference Source
import KeyBindingsManager from './ui/utils/keybindingsmanager.js'
public class | source

KeyBindingsManager

Extends:

Events → KeyBindingsManager

manage keybindings for hotkeys/shortcuts

Constructor Summary

Public Constructor
public

Member Summary

Public Members
public

shiftKey: boolean

Private Members
private

_keys: *[]

private

_tab: *

Method Summary

Public Methods
public
public

key(key: *, title: *, event: *, target: *, options: *, cb: *)

public

show()

Private Methods
private

_addKey(key: *, title: *, event: *, target: *, options: *, cb: *)

private

_onKeyDown(e: *)

private

_onKeyPress(e: *)

private

_onKeyUp(e: *)

private

Inherited Summary

From class Events
public

off: *

public

on: *

private
private
private

_log: *

private

_logEvents: boolean

private

_logName: string

public

addEventListener(which: *, cb: *, idPrefix: string): string

add event listener

public

emitEvent(which: string, param1: *, param2: *, param3: *, param4: *, param5: *, param6: *)

emit event

public

hasEventListener(id: *, cb: *): boolean

check event listener registration

public

hasListenerForEventName(eventName: *): boolean

check event listener by name

public

logEvents(enabled: boolean, logName: string)

enable/disable logging of events for the class

public

removeEventListener(id: *, cb: *)

rempve event listener registration

Public Constructors

public constructor() source

Override:

Events#constructor

Public Members

public shiftKey: boolean source

Private Members

private _keys: *[] source

private _tab: * source

Public Methods

public download() source

public key(key: *, title: *, event: *, target: *, options: *, cb: *) source

Params:

NameTypeAttributeDescription
key *
title *
event *
target *
options *
cb *

public show() source

Private Methods

private _addKey(key: *, title: *, event: *, target: *, options: *, cb: *) source

Params:

NameTypeAttributeDescription
key *
title *
event *
target *
options *
cb *

private _onKeyDown(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onKeyPress(e: *) source

Params:

NameTypeAttributeDescription
e *

private _onKeyUp(e: *) source

Params:

NameTypeAttributeDescription
e *

private _prepareKeysForDisplay(keys: *): * source

Params:

NameTypeAttributeDescription
keys *

Return:

*