tw5-typed / modules/keyboard / KeyboardManager
Interface: KeyboardManager
modules/keyboard.KeyboardManager
Table of contents
Properties
- checkKeyDescriptor
- checkKeyDescriptors
- detectNewShortcuts
- getEventModifierKeyDescriptor
- getMatchingKeyDescriptor
- getModifierKeys
- getPrintableShortcuts
- getShortcutTiddlerList
- handleKeydownEvent
- handleShortcutChanges
- keyNames
- lookupNames
- metaKeyName
- namedKeys
- parseKeyDescriptor
- parseKeyDescriptors
- shortcutActionList
- shortcutKeysList
- shortcutParsedList
- shortcutPriorityList
- updateShortcutLists
Properties
checkKeyDescriptor
• checkKeyDescriptor: (event: any, keyInfo: KeyInfo) => boolean
Type declaration
▸ (event, keyInfo): boolean
Parameters
| Name | Type |
|---|---|
event | any |
keyInfo | KeyInfo |
Returns
boolean
Defined in
checkKeyDescriptors
• checkKeyDescriptors: (event: any, keyInfoArray: KeyInfo[]) => boolean
Type declaration
▸ (event, keyInfoArray): boolean
Parameters
| Name | Type |
|---|---|
event | any |
keyInfoArray | KeyInfo[] |
Returns
boolean
Defined in
detectNewShortcuts
• detectNewShortcuts: (changedTiddlers: Record<string, any>) => boolean | string[]
Type declaration
▸ (changedTiddlers): boolean | string[]
Parameters
| Name | Type |
|---|---|
changedTiddlers | Record<string, any> |
Returns
boolean | string[]
Defined in
getEventModifierKeyDescriptor
• getEventModifierKeyDescriptor: (event: any) => string
Type declaration
▸ (event): string
Parameters
| Name | Type |
|---|---|
event | any |
Returns
string
Defined in
getMatchingKeyDescriptor
• getMatchingKeyDescriptor: (event: any, keyInfoArray: KeyInfo[]) => KeyInfo
Type declaration
▸ (event, keyInfoArray): KeyInfo
Parameters
| Name | Type |
|---|---|
event | any |
keyInfoArray | KeyInfo[] |
Returns
Defined in
getModifierKeys
• getModifierKeys: () => number[]
Type declaration
▸ (): number[]
Returns
number[]
Defined in
getPrintableShortcuts
• getPrintableShortcuts: (keyInfoArray: KeyInfo[]) => string[]
Type declaration
▸ (keyInfoArray): string[]
Parameters
| Name | Type |
|---|---|
keyInfoArray | KeyInfo[] |
Returns
string[]
Defined in
getShortcutTiddlerList
• getShortcutTiddlerList: () => string[]
Type declaration
▸ (): string[]
Returns
string[]
Defined in
handleKeydownEvent
• handleKeydownEvent: (event: any, options?: { onlyPriority?: boolean }) => boolean
Type declaration
▸ (event, options?): boolean
Parameters
| Name | Type |
|---|---|
event | any |
options? | Object |
options.onlyPriority? | boolean |
Returns
boolean
Defined in
handleShortcutChanges
• handleShortcutChanges: (changedTiddlers: Record<string, any>) => void
Type declaration
▸ (changedTiddlers): void
Parameters
| Name | Type |
|---|---|
changedTiddlers | Record<string, any> |
Returns
void
Defined in
keyNames
• keyNames: string[]
Defined in
lookupNames
• lookupNames: string[]
Defined in
metaKeyName
• metaKeyName: string
Defined in
namedKeys
• namedKeys: Record<string, number>
Defined in
parseKeyDescriptor
• parseKeyDescriptor: (keyDescriptor: string, options?: { keyDescriptor?: string }) => KeyInfo
Type declaration
▸ (keyDescriptor, options?): KeyInfo
Parameters
| Name | Type |
|---|---|
keyDescriptor | string |
options? | Object |
options.keyDescriptor? | string |
Returns
Defined in
parseKeyDescriptors
• parseKeyDescriptors: (keyDescriptors: string | string[], options?: { stack?: string[] ; wiki?: any }) => KeyInfo[]
Type declaration
▸ (keyDescriptors, options?): KeyInfo[]
Parameters
| Name | Type |
|---|---|
keyDescriptors | string | string[] |
options? | Object |
options.stack? | string[] |
options.wiki? | any |
Returns
KeyInfo[]
Defined in
shortcutActionList
• shortcutActionList: string[]
Defined in
shortcutKeysList
• shortcutKeysList: string[]
Defined in
shortcutParsedList
• shortcutParsedList: KeyInfo[][]
Defined in
shortcutPriorityList
• shortcutPriorityList: boolean[]
Defined in
updateShortcutLists
• updateShortcutLists: (tiddlerList: string[]) => void
Type declaration
▸ (tiddlerList): void
Parameters
| Name | Type |
|---|---|
tiddlerList | string[] |
Returns
void