Skip to content

Instantly share code, notes, and snippets.

@olostan
Last active November 20, 2023 23:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save olostan/26e49dd74f9bb4f5fa2d431d1bd6f2da to your computer and use it in GitHub Desktop.
Save olostan/26e49dd74f9bb4f5fa2d431d1bd6f2da to your computer and use it in GitHub Desktop.
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