@univerjs/engine-render v0.5.0-beta.1 • Docs
Interface: IKeyboardEvent
Native friendly interface for KeyboardEvent Object
Extends
Properties
Property | Modifier | Type | Description | Inherited from | Defined in |
---|---|---|---|---|---|
altKey | public | boolean | Status of Alt key being pressed | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:142 |
AT_TARGET | readonly | 2 | - | IUIEvent .AT_TARGET | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8192 |
bubbles | readonly | boolean | Returns true or false depending on how event was initialized. True if event goes through its target’s ancestors in reverse tree order, and false otherwise. MDN Reference | IUIEvent .bubbles | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8087 |
BUBBLING_PHASE | readonly | 3 | - | IUIEvent .BUBBLING_PHASE | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8193 |
cancelable | readonly | boolean | Returns true or false depending on how event was initialized. Its return value does not always carry meaning, but true can indicate that part of the operation during which event was dispatched, can be canceled by invoking the preventDefault() method. MDN Reference | IUIEvent .cancelable | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8099 |
cancelBubble | public | boolean | Deprecated MDN Reference | IUIEvent .cancelBubble | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8093 |
CAPTURING_PHASE | readonly | 1 | - | IUIEvent .CAPTURING_PHASE | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8191 |
charCode? | public | number | Unicode value of character pressed Deprecated | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:148 |
code | public | string | Code for key based on layout | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:153 |
composed | readonly | boolean | Returns true or false depending on how event was initialized. True if event invokes listeners past a ShadowRoot node that is the root of its target, and false otherwise. MDN Reference | IUIEvent .composed | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8105 |
ctrlKey | public | boolean | Status of Ctrl key being pressed | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:158 |
currentState | public | Nullable <number > | Current state of given input | IUIEvent .currentState | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:122 |
currentTarget | readonly | null | EventTarget | Returns the object whose event listener’s callback is currently being invoked. MDN Reference | IUIEvent .currentTarget | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8111 |
defaultPrevented | readonly | boolean | Returns true if preventDefault() was invoked successfully to indicate cancelation, and false otherwise. MDN Reference | IUIEvent .defaultPrevented | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8117 |
detail | readonly | number | MDN Reference | IUIEvent .detail | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22316 |
deviceType | public | DeviceType | Device type | IUIEvent .deviceType | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:110 |
eventPhase | readonly | number | Returns the event’s phase, which is one of NONE, CAPTURING_PHASE, AT_TARGET, and BUBBLING_PHASE. MDN Reference | IUIEvent .eventPhase | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8123 |
inputIndex | public | number | Device slot | IUIEvent .inputIndex | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:114 |
isTrusted | readonly | boolean | Returns true if event was dispatched by the user agent, and false otherwise. MDN Reference | IUIEvent .isTrusted | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8129 |
key | public | string | String representation of key | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:163 |
keyCode | public | number | - | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:168 |
metaKey | public | boolean | Status of Meta key (eg. Windows key) being pressed | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:173 |
NONE | readonly | 0 | - | IUIEvent .NONE | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8190 |
previousState | public | Nullable <number > | Previous state of given input, for what???, nobody read this value. | IUIEvent .previousState | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:118 |
returnValue | public | boolean | Deprecated MDN Reference | IUIEvent .returnValue | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8135 |
shiftKey | public | boolean | Status of Shift key being pressed | - | packages/api/tmp/univer-pro/submodules/univer/packages/engine-render/src/basics/i-events.ts:178 |
srcElement | readonly | null | EventTarget | Deprecated MDN Reference | IUIEvent .srcElement | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8141 |
target | readonly | null | EventTarget | Returns the object to which event is dispatched (its target). MDN Reference | IUIEvent .target | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8147 |
timeStamp | readonly | number | Returns the event’s timestamp as the number of milliseconds measured relative to the time origin. MDN Reference | IUIEvent .timeStamp | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8153 |
type | readonly | string | Returns the type of event, e.g. “click”, “hashchange”, or “submit”. MDN Reference | IUIEvent .type | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8159 |
view | readonly | null | Window | MDN Reference | IUIEvent .view | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22318 |
which | readonly | number | Deprecated MDN Reference | IUIEvent .which | node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22324 |
Methods
composedPath()
composedPath(undefined)
composedPath(): EventTarget[]
Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.
Returns
EventTarget
[]
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8165
composedPath(undefined)
composedPath(): EventTarget[]
Returns the invocation target objects of event’s path (objects on which listeners will be invoked), except for any nodes in shadow trees of which the shadow root’s mode is “closed” that are not reachable from event’s currentTarget.
Returns
EventTarget
[]
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2473
initEvent()
initEvent(type, bubbles, cancelable)
initEvent(
type,
bubbles?,
cancelable?): void
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8171
initEvent(type, bubbles, cancelable)
initEvent(
type,
bubbles?,
cancelable?): void
Parameters
Parameter | Type |
---|---|
type | string |
bubbles ? | boolean |
cancelable ? | boolean |
Returns
void
Deprecated
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2479
initUIEvent()
initUIEvent(
typeArg,
bubblesArg?,
cancelableArg?,
viewArg?,
detailArg?): void
Parameters
Parameter | Type |
---|---|
typeArg | string |
bubblesArg ? | boolean |
cancelableArg ? | boolean |
viewArg ? | null | Window |
detailArg ? | number |
Returns
void
Deprecated
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:22330
preventDefault()
preventDefault(undefined)
preventDefault(): void
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Returns
void
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8177
preventDefault(undefined)
preventDefault(): void
If invoked when the cancelable attribute value is true, and while executing a listener for the event with passive set to false, signals to the operation that caused event to be dispatched that it needs to be canceled.
Returns
void
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2485
stopImmediatePropagation()
stopImmediatePropagation(undefined)
stopImmediatePropagation(): void
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
Returns
void
Inherited from
IUIEvent
.stopImmediatePropagation
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8183
stopImmediatePropagation(undefined)
stopImmediatePropagation(): void
Invoking this method prevents event from reaching any registered event listeners after the current one finishes running and, when dispatched in a tree, also prevents event from reaching any other objects.
Returns
void
Inherited from
IUIEvent
.stopImmediatePropagation
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2491
stopPropagation()
stopPropagation(undefined)
stopPropagation(): void
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns
void
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.dom.d.ts:8189
stopPropagation(undefined)
stopPropagation(): void
When dispatched in a tree, invoking this method prevents event from reaching any objects other than the current object.
Returns
void
Inherited from
Defined in
node_modules/.pnpm/typescript@5.6.3/node_modules/typescript/lib/lib.webworker.d.ts:2497