diff --git a/src/popup/interface.js b/src/popup/interface.js index 7ab0638..b8c4c6f 100644 --- a/src/popup/interface.js +++ b/src/popup/interface.js @@ -206,7 +206,11 @@ function keyHandler(e) { break; case "KeyC": if (e.ctrlKey) { - this.doAction(e.shiftKey ? "copyUsername" : "copyPassword"); + if (e.shiftKey || document.activeElement.classList.contains("copy-user")) { + this.doAction("copyUsername"); + } else { + this.doAction("copyPassword"); + } } break; case "KeyG":