Skip to content

Interface: IKeyEvent

Hierarchy

Implemented by

Table of contents

Properties

Methods

Properties

origin

Optional origin: IObject

Inherited from

IUIEvent.origin

Defined in

leafer/packages/interface/src/event/IEvent.ts:9


type

Optional type: string

Inherited from

IUIEvent.type

Defined in

leafer/packages/interface/src/event/IEvent.ts:11


target

Optional target: IEventTarget

Inherited from

IUIEvent.target

Defined in

leafer/packages/interface/src/event/IEvent.ts:12


current

Optional current: IEventTarget

Inherited from

IUIEvent.current

Defined in

leafer/packages/interface/src/event/IEvent.ts:13


bubbles

Optional bubbles: boolean

Inherited from

IUIEvent.bubbles

Defined in

leafer/packages/interface/src/event/IEvent.ts:15


phase

Optional phase: number

Inherited from

IUIEvent.phase

Defined in

leafer/packages/interface/src/event/IEvent.ts:16


isStopDefault

Optional isStopDefault: boolean

Inherited from

IUIEvent.isStopDefault

Defined in

leafer/packages/interface/src/event/IEvent.ts:18


isStop

Optional isStop: boolean

Inherited from

IUIEvent.isStop

Defined in

leafer/packages/interface/src/event/IEvent.ts:19


isStopNow

Optional isStopNow: boolean

Inherited from

IUIEvent.isStopNow

Defined in

leafer/packages/interface/src/event/IEvent.ts:20


x

x: number

Inherited from

IUIEvent.x

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:9


y

y: number

Inherited from

IUIEvent.y

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:10


altKey

Optional altKey: boolean

Inherited from

IUIEvent.altKey

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:12


ctrlKey

Optional ctrlKey: boolean

Inherited from

IUIEvent.ctrlKey

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:13


shiftKey

Optional shiftKey: boolean

Inherited from

IUIEvent.shiftKey

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:14


metaKey

Optional metaKey: boolean

Inherited from

IUIEvent.metaKey

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:15


spaceKey

Optional Readonly spaceKey: boolean

Inherited from

IUIEvent.spaceKey

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:16


left

Optional Readonly left: boolean

Inherited from

IUIEvent.left

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:18


Optional Readonly right: boolean

Inherited from

IUIEvent.right

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:19


middle

Optional Readonly middle: boolean

Inherited from

IUIEvent.middle

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:20


buttons

Optional buttons: number

Inherited from

IUIEvent.buttons

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:21


path

Optional path: ILeafList

Inherited from

IUIEvent.path

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:23


throughPath

Optional throughPath: ILeafList

Inherited from

IUIEvent.throughPath

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:24


code

Optional code: string

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:91


key

Optional key: string

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:92

Methods

stopDefault

stopDefault(): void

Returns

void

Inherited from

IUIEvent.stopDefault

Defined in

leafer/packages/interface/src/event/IEvent.ts:21


stopNow

stopNow(): void

Returns

void

Inherited from

IUIEvent.stopNow

Defined in

leafer/packages/interface/src/event/IEvent.ts:22


stop

stop(): void

Returns

void

Inherited from

IUIEvent.stop

Defined in

leafer/packages/interface/src/event/IEvent.ts:23


getBoxPoint

getBoxPoint(relative?): IPointData

Parameters

NameType
relative?ILeaf

Returns

IPointData

Inherited from

IUIEvent.getBoxPoint

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:26


getInnerPoint

getInnerPoint(relative?): IPointData

Parameters

NameType
relative?ILeaf

Returns

IPointData

Inherited from

IUIEvent.getInnerPoint

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:27


getLocalPoint

getLocalPoint(relative?): IPointData

Parameters

NameType
relative?ILeaf

Returns

IPointData

Inherited from

IUIEvent.getLocalPoint

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:28


getPagePoint

getPagePoint(): IPointData

Returns

IPointData

Inherited from

IUIEvent.getPagePoint

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:29


getInner

getInner(relative?): IPointData

Parameters

NameType
relative?ILeaf

Returns

IPointData

Inherited from

IUIEvent.getInner

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:32


getLocal

getLocal(relative?): IPointData

Parameters

NameType
relative?ILeaf

Returns

IPointData

Inherited from

IUIEvent.getLocal

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:33


getPage

getPage(): IPointData

Returns

IPointData

Inherited from

IUIEvent.getPage

Defined in

leafer/packages/interface/src/event/IUIEvent.ts:34

Released under the MIT License.