Make Ctrl+C copy username if username button is focused (#183)
This commit is contained in:
@@ -206,7 +206,11 @@ function keyHandler(e) {
|
|||||||
break;
|
break;
|
||||||
case "KeyC":
|
case "KeyC":
|
||||||
if (e.ctrlKey) {
|
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;
|
break;
|
||||||
case "KeyG":
|
case "KeyG":
|
||||||
|
Reference in New Issue
Block a user