Weird hybrid
This commit is contained in:
@ -12,6 +12,7 @@ export interface KeyboardShortcutHandlers {
|
||||
onShiftR?: () => void
|
||||
onC?: () => void
|
||||
onShiftC?: () => void
|
||||
onI?: () => void
|
||||
onEscape?: () => void
|
||||
}
|
||||
|
||||
@ -92,6 +93,12 @@ export function useKeyboardShortcuts(handlers: KeyboardShortcutHandlers) {
|
||||
}
|
||||
break
|
||||
|
||||
case 'i':
|
||||
case 'I':
|
||||
e.preventDefault()
|
||||
h.onI?.()
|
||||
break
|
||||
|
||||
case 'Escape':
|
||||
e.preventDefault()
|
||||
h.onEscape?.()
|
||||
|
||||
Reference in New Issue
Block a user