Skip to content

Commit

Permalink
add m/M shortcut for side menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Andi Braimllari committed May 6, 2024
1 parent 7ff40cc commit 2e0c5d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/app/header/header.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
>
<div class="header-name-gear-icon">
<button
id='off-canvas-start-button'
class="off-canvas-start-button"
[ngClass]="{
'header-button-dark-mode': darkModeService.isDarkMode
Expand Down
4 changes: 4 additions & 0 deletions src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1409,6 +1409,10 @@ export class HomeComponent implements AfterViewInit, OnDestroy {
this.copyToClipboard();
return;
}
case 'm':
case 'M': {
document.getElementById('off-canvas-start-button')!.click();
}
}
}

Expand Down

0 comments on commit 2e0c5d7

Please sign in to comment.