We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 58abaff commit 038c6c1Copy full SHA for 038c6c1
view/mainView.js
@@ -52,7 +52,16 @@ document.addEventListener("keydown", function (e) {
52
}
53
} else if (e.ctrlKey && (e.key === "c" || e.key === "C")) {
54
const copyButton = document.getElementById("copy-button");
55
- if (copyButton.disabled === false) {
+
56
+ //if an input text field is on focus, disable element copy in favor of text copy
57
+ const elementOnFocus = document.querySelector(":focus");
58
+ const inputElements = [
59
+ ...document.querySelectorAll(".update-element-value-input"),
60
+ ];
61
+ if (
62
+ copyButton.disabled === false &&
63
+ !inputElements.includes(elementOnFocus)
64
+ ) {
65
copyExpandedOrSelectedElements();
66
67
} else if (e.ctrlKey && (e.key === "z" || e.key === "Z")) {
0 commit comments