Hotkey
Vue Bootstrap 5 Hotkey
The mdbHotkey
is a custom directive which allows to set callbacks for key combinations.
Note: Read the API tab to find all available options and advanced customization
Basic example
Import the directive from 'mdb-vue-ui-kit' and add mdbHotkey
to the directives object. Attach the directive to the element on which you wish to listen for events and pass a keymap as the value.
Press alt+l to insert a default text / ctrl + c to clear textarea
This is a mobile version of the documentation.
View this website on the desktop to copy & edit the source code of the component.