Last active
November 20, 2023 23:25
-
-
Save olostan/26e49dd74f9bb4f5fa2d431d1bd6f2da to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener ("keydown", function (zEvent) { | |
if (zEvent.ctrlKey && zEvent.altKey && zEvent.key === "1") { // case sensitive | |
document.querySelectorAll('mat-radio-group input')[0].click(); document.querySelectorAll('button')[1].click() } | |
} ); | |
document.addEventListener ("keydown", function (zEvent) { | |
if (zEvent.ctrlKey && zEvent.altKey && zEvent.key === "2") { // case sensitive | |
document.querySelectorAll('mat-radio-group input')[1].click(); document.querySelectorAll('button')[1].click() } | |
} ); | |
document.addEventListener ("keydown", function (zEvent) { | |
if (zEvent.ctrlKey && zEvent.altKey && zEvent.key === "3") { // case sensitive | |
document.querySelectorAll('mat-radio-group input')[2].click(); document.querySelectorAll('button')[1].click() } | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment