Last modified: 4/Oct/2024
useKeyboardShortcut
By this hook you can assign a keyboard shortcut to a specified callback.
#Usage
import { useKeyboardShortcut } from '@kinsta/stratus'
const MyComponent = ({ myAction }) => {
useKeyboardShortcut({
shortcut: 'k',
callback: myAction,
})
}