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