mirror of
https://github.com/directus/directus.git
synced 2026-02-15 05:44:57 -05:00
tweak shortcuts
This commit is contained in:
@@ -35,6 +35,7 @@
|
||||
:batch-active="batchActive"
|
||||
:disabled="isDisabled"
|
||||
:primary-key="primaryKey"
|
||||
data-disable-mousetrap
|
||||
@input="$emit('input', $event)"
|
||||
/>
|
||||
|
||||
|
||||
@@ -37,6 +37,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
import { defineComponent, ref, computed, provide } from '@vue/composition-api';
|
||||
import useShortcut from '@/composables/use-shortcut';
|
||||
|
||||
export default defineComponent({
|
||||
model: {
|
||||
@@ -72,6 +73,11 @@ export default defineComponent({
|
||||
},
|
||||
},
|
||||
setup(props, { emit }) {
|
||||
useShortcut('esc', () => {
|
||||
console.log('A');
|
||||
|
||||
_active.value = false;
|
||||
});
|
||||
const sidebarActive = ref(false);
|
||||
const localActive = ref(false);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user