input box trans

This commit is contained in:
Gabe Yuan
2023-09-15 17:58:00 +08:00
parent 3078d3ca91
commit 6e8158bb34

View File

@@ -360,7 +360,6 @@ export class Translator {
} }
let text = getNodeText(node); let text = getNodeText(node);
const loadingId = "kiss-" + genEventName();
// todo: remove multiple char // todo: remove multiple char
if (triggerShortcut.length === 1 && triggerShortcut[0].length === 1) { if (triggerShortcut.length === 1 && triggerShortcut[0].length === 1) {
@@ -389,6 +388,7 @@ export class Translator {
// console.log("input -->", text); // console.log("input -->", text);
const loadingId = "kiss-" + genEventName();
try { try {
addLoading(node, loadingId); addLoading(node, loadingId);