feat: keyboard shortcuts for primary actions (#2030)
This commit is contained in:
12
packages/ui-services/src/Keyboard/KeyboardCommandHandler.ts
Normal file
12
packages/ui-services/src/Keyboard/KeyboardCommandHandler.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { KeyboardCommand } from './KeyboardCommands'
|
||||
|
||||
export type KeyboardCommandHandler = {
|
||||
command: KeyboardCommand
|
||||
onKeyDown?: (event: KeyboardEvent) => boolean | void
|
||||
onKeyUp?: (event: KeyboardEvent) => boolean | void
|
||||
element?: HTMLElement
|
||||
elements?: HTMLElement[]
|
||||
notElement?: HTMLElement
|
||||
notElementIds?: string[]
|
||||
notTags?: string[]
|
||||
}
|
||||
Reference in New Issue
Block a user