From 8aa9208f86aedbeb2c48584169a32102eee95428 Mon Sep 17 00:00:00 2001 From: BuckAMayzing Date: Fri, 31 May 2019 05:59:31 -0400 Subject: [PATCH] Reassigned shortcut keys for browser compatibility. (#151) --- README.md | 8 ++++---- ui/hooks/use-keys.ts | 2 +- ui/sidebar/index.tsx | 6 +++--- ui/test-file/index.tsx | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index abb6562..e6c64ec 100644 --- a/README.md +++ b/README.md @@ -109,13 +109,13 @@ You can configure Majestic by adding `majestic` key to `package.json`. ### Shortcut keys -`ctrl+t` - run all tests +`alt+t` - run all tests -`ctrl+enter` - run selected file +`alt+enter` - run selected file -`ctrl+w` - watch +`alt+w` - watch -`ctrl+s` - search +`alt+s` - search `escape` - close search diff --git a/ui/hooks/use-keys.ts b/ui/hooks/use-keys.ts index 6ea5fc0..c37a9fd 100644 --- a/ui/hooks/use-keys.ts +++ b/ui/hooks/use-keys.ts @@ -6,7 +6,7 @@ export function hasKeys(expectedKeys: string[], pressedKeys: Map item.parent === null ); const keys = useKeys(); - if (hasKeys(["Control", "Enter"], keys)) { + if (hasKeys(["Alt", "Enter"], keys)) { runFile(); } return (