mirror of
https://github.com/Fabio286/antares.git
synced 2025-06-05 21:59:22 +02:00
feat: dynamic shortcut suggestions on empty query tabs
This commit is contained in:
@ -172,6 +172,9 @@ import { shortcutEvents, ShortcutRecord } from 'common/shortcuts';
|
||||
import ConfirmModal from '@/components/BaseConfirmModal.vue';
|
||||
import BaseSelect from '@/components/BaseSelect.vue';
|
||||
import { computed } from '@vue/reactivity';
|
||||
import { useFilters } from '@/composables/useFilters';
|
||||
|
||||
const { parseKeys } = useFilters();
|
||||
|
||||
const { t } = useI18n();
|
||||
|
||||
@ -202,17 +205,6 @@ const eventOptions = computed(() => {
|
||||
});
|
||||
});
|
||||
|
||||
const parseKeys = (keys: {[key: number]: string}[]) => {
|
||||
return (keys as string[]).map(k => (
|
||||
k.split('+')
|
||||
.map(sk => (
|
||||
`<code class="text-bold">${sk}</code>`
|
||||
)))
|
||||
.join('+')
|
||||
.replaceAll('CommandOrControl', isMacOS ? 'Command' : 'Control')
|
||||
).join(', ');
|
||||
};
|
||||
|
||||
const restoreDefaults = () => {
|
||||
isConfirmRestoreModal.value = false;
|
||||
return Application.restoreDefaultShortcuts();
|
||||
|
Reference in New Issue
Block a user