@univerjs/ui v0.1.17 • Docs
Interface: IShortcutService
Properties
Property | Type | Defined in |
---|---|---|
shortcutChanged$ | Observable <void > | packages/ui/src/services/shortcut/shortcut.service.ts:56 (opens in a new tab) |
Methods
forceEscape()
forceEscape(): IDisposable
Returns
IDisposable
Defined in
packages/ui/src/services/shortcut/shortcut.service.ts:58 (opens in a new tab)
getAllShortcuts()
getAllShortcuts(): IShortcutItem<object>[]
Returns
IShortcutItem
<object
>[]
Defined in
packages/ui/src/services/shortcut/shortcut.service.ts:65 (opens in a new tab)
getShortcutDisplay()
getShortcutDisplay(shortcut): string
Parameters
Parameter | Type |
---|---|
shortcut | IShortcutItem <object > |
Returns
string
Defined in
packages/ui/src/services/shortcut/shortcut.service.ts:63 (opens in a new tab)
getShortcutDisplayOfCommand()
getShortcutDisplayOfCommand(id): null | string
Parameters
Parameter | Type |
---|---|
id | string |
Returns
null
| string
Defined in
packages/ui/src/services/shortcut/shortcut.service.ts:64 (opens in a new tab)
registerShortcut()
registerShortcut(shortcut): IDisposable
Parameters
Parameter | Type |
---|---|
shortcut | IShortcutItem <object > |
Returns
IDisposable
Defined in
packages/ui/src/services/shortcut/shortcut.service.ts:62 (opens in a new tab)
setDisable()
setDisable(disable): void
Parameters
Parameter | Type |
---|---|
disable | boolean |
Returns
void
Defined in
packages/ui/src/services/shortcut/shortcut.service.ts:66 (opens in a new tab)