mirror of
https://github.com/Dvorinka/swingmusic-extended.git
synced 2026-06-04 20:43:04 +00:00
rewrite some fetch methods to use the useAxios hook
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import useQStore from "@/stores/queue"
|
||||
import useQStore from "@/stores/queue";
|
||||
|
||||
let key_down_fired = false;
|
||||
|
||||
@@ -9,12 +9,12 @@ function focusSearchBox() {
|
||||
}
|
||||
|
||||
export default function (queue: typeof useQStore) {
|
||||
const q = queue()
|
||||
window.addEventListener("keydown", (e: any) => {
|
||||
let target = e.target;
|
||||
const q = queue();
|
||||
window.addEventListener("keydown", (e: KeyboardEvent) => {
|
||||
let target = e.target as HTMLElement;
|
||||
let ctrlKey = e.ctrlKey;
|
||||
|
||||
function FocusedOnInput(target: any) {
|
||||
function FocusedOnInput(target: HTMLElement) {
|
||||
return target.tagName === "INPUT" || target.tagName === "TEXTAREA";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user