We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0b6f2d1 commit b5fa065Copy full SHA for b5fa065
src/handlers/quickTools.js
@@ -58,8 +58,12 @@ quickTools.$input.addEventListener("keydown", (e) => {
58
e.preventDefault();
59
60
const event = KeyboardEvent("keydown", keyCombination);
61
- input = input || editorManager.editor.textInput.getElement();
62
- input.dispatchEvent(event);
+ if (input && input !== quickTools.$input) {
+ input.dispatchEvent(event);
63
+ } else {
64
+ // Otherwise fallback to editor input
65
+ editorManager.editor.textInput.getElement().dispatchEvent(event);
66
+ }
67
});
68
69
appSettings.on("update:quicktoolsItems:after", () => {
0 commit comments