set back focus

This commit is contained in:
Andras Bacsai 2023-06-07 15:14:49 +02:00
parent bbcabc8e71
commit e73d86255b

View File

@ -181,7 +181,7 @@
<script setup>
import { ref, computed, onMounted, onUnmounted, watch, nextTick } from 'vue'
import axios from "axios";
const currentFocus = ref()
const currentFocus = ref(0)
function focusNext(length) {
if (currentFocus.value === undefined) {
currentFocus.value = 0
@ -338,6 +338,9 @@ watch(showCommandPalette, async (value) => {
searchInput.value.focus();
}
})
watch(search, async () => {
currentFocus.value = 0
})
const magic = computed(() => {
if (search.value) {
return sequenceState.value.magicActions.filter(action => {