Browse Source

fix(admin-ui): Fix cmd+u shortcut on macOS (#1291)

Steffen Wilking 4 years ago
parent
commit
0b74cc9642
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/admin-ui/src/lib/core/src/app.component.ts

+ 1 - 1
packages/admin-ui/src/lib/core/src/app.component.ts

@@ -74,7 +74,7 @@ export class AppComponent implements OnInit {
 
     @HostListener('window:keydown', ['$event'])
     handleGlobalHotkeys(event: KeyboardEvent) {
-        if (event.ctrlKey === true && event.key === 'u') {
+        if ((event.ctrlKey === true || event.metaKey === true) && event.key === 'u') {
             event.preventDefault();
             if (isDevMode()) {
                 this.dataService.client