mirror of
https://github.com/directus/directus.git
synced 2026-02-16 03:15:05 -05:00
Use second param instead of augmenting system event
This commit is contained in:
@@ -33,10 +33,10 @@ export default defineComponent({
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
const dialog = ref<HTMLElement | null>(null);
|
||||
useShortcut('escape', (event) => {
|
||||
useShortcut('escape', (event, cancelNext) => {
|
||||
if (_active.value) {
|
||||
emitToggle();
|
||||
event.cancelNext();
|
||||
cancelNext();
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user