function init() {
	const { $footer, $toggler, $input } = quickTools;

	$toggler.addEventListener("click", (e) => {
		e.preventDefault();
		e.stopPropagation();
		actions("toggle");
	});

	key.on("shift", (value) => {
		if (value) $footer.setAttribute("data-shift", "true");
		else $footer.removeAttribute("data-shift");
	});

	key.on("ctrl", (value) => {
		if (value) $footer.setAttribute("data-ctrl", "true");
		else $footer.removeAttribute("data-ctrl");
	});

	key.on("alt", (value) => {
		if (value) $footer.setAttribute("data-alt", "true");
		else $footer.removeAttribute("data-alt");
	});

	key.on("meta", (value) => {
		if (value) $footer.setAttribute("data-meta", "true");
		else $footer.removeAttribute("data-meta");
	});

	editorManager.on(["file-content-changed", "switch-file"], () => {
		if (editorManager.activeFile?.isUnsaved) {
			$footer.setAttribute("data-unsaved", "true");
		} else {
			$footer.removeAttribute("data-unsaved");
		}
	});

	editorManager.on("save-file", () => {
		$footer.removeAttribute("data-unsaved");
	});

	editorManager.editor.on("focus", () => {
		if (key.shift || key.ctrl || key.alt || key.meta) {
			quickTools.$input.focus();
		}
	});

	root.append($footer, $toggler);
	document.body.append($input);
	if (
		appSettings.value.quickToolsTriggerMode ===
		appSettings.QUICKTOOLS_TRIGGER_MODE_CLICK
	) {
		isClickMode = true;
		$footer.addEventListener("click", onclick);
		$footer.addEventListener("contextmenu", oncontextmenu, true);
		$footer.addEventListener("wheel", onwheel, { passive: false });
	} else {
		$footer.addEventListener("touchstart", touchstart);
		$footer.addEventListener("keydown", touchstart);
	}

	appSettings.on("update:quickToolsTriggerMode", (value) => {
		if (value === appSettings.QUICKTOOLS_TRIGGER_MODE_CLICK) {
			$footer.removeEventListener("touchstart", touchstart);
			$footer.removeEventListener("keydown", touchstart);
			$footer.addEventListener("contextmenu", onclick, true);
			$footer.addEventListener("click", onclick);
			$footer.addEventListener("wheel", onwheel, { passive: false });
		} else {
			$footer.removeEventListener("contextmenu", onclick, true);
			$footer.removeEventListener("click", onclick);
			$footer.removeEventListener("wheel", onwheel);
			$footer.addEventListener("keydown", touchstart);
			$footer.addEventListener("touchstart", touchstart);
		}
	});
}
Initialize quick tools
@param {HTMLElement} $footer