set back focus
This commit is contained in:
parent
bbcabc8e71
commit
e73d86255b
1 changed files with 4 additions and 1 deletions
|
|
@ -181,7 +181,7 @@
|
||||||
<script setup>
|
<script setup>
|
||||||
import { ref, computed, onMounted, onUnmounted, watch, nextTick } from 'vue'
|
import { ref, computed, onMounted, onUnmounted, watch, nextTick } from 'vue'
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
const currentFocus = ref()
|
const currentFocus = ref(0)
|
||||||
function focusNext(length) {
|
function focusNext(length) {
|
||||||
if (currentFocus.value === undefined) {
|
if (currentFocus.value === undefined) {
|
||||||
currentFocus.value = 0
|
currentFocus.value = 0
|
||||||
|
|
@ -338,6 +338,9 @@ watch(showCommandPalette, async (value) => {
|
||||||
searchInput.value.focus();
|
searchInput.value.focus();
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
watch(search, async () => {
|
||||||
|
currentFocus.value = 0
|
||||||
|
})
|
||||||
const magic = computed(() => {
|
const magic = computed(() => {
|
||||||
if (search.value) {
|
if (search.value) {
|
||||||
return sequenceState.value.magicActions.filter(action => {
|
return sequenceState.value.magicActions.filter(action => {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue