NGL@1.0.0-beta.7 Home Manual Reference Source Gallery
import KeyBehavior from 'ngl/src/stage/key-behavior.js'
public class | source

KeyBehavior

Constructor Summary

Public Constructor
public

constructor(stage: Stage)

Member Summary

Public Members
public
public
public

Method Summary

Public Methods
public
Private Methods
private
private

_onKeydown(event: Event): undefined

handle key down

private

_onKeypress(event: Event): undefined

handle key press

private

_onKeyup(event: Event): undefined

handle key up

Public Constructors

public constructor(stage: Stage) source

Params:

NameTypeAttributeDescription
stage Stage

the stage object

Public Members

public controls source

public domElement source

public stage source

Public Methods

public dispose() source

Private Methods

private _focusDomElement() source

private _onKeydown(event: Event): undefined source

handle key down

Params:

NameTypeAttributeDescription
event Event

key event

Return:

undefined

private _onKeypress(event: Event): undefined source

handle key press

Params:

NameTypeAttributeDescription
event Event

key event

Return:

undefined

private _onKeyup(event: Event): undefined source

handle key up

Params:

NameTypeAttributeDescription
event Event

key event

Return:

undefined