aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2021-01-15 15:27:16 -0500
committerbobzel <zzzman@gmail.com>2021-01-15 15:27:16 -0500
commitba3bcbbf3f0ce8769acb6e84ac3aa8ac3a5c9694 (patch)
tree6fe66f348d6cbab554bcace9a4c93f1558e263b2 /src/client/views/GlobalKeyHandler.ts
parent4eb2de2c53280104fc809bbd387ed97460312e69 (diff)
fixed more issues with audio Box - simplified decorations when selected. fixed dragging when not selected. added esc to stop dragging.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index c38842c4f..8a07c5321 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -27,6 +27,7 @@ import { SnappingManager } from "../util/SnappingManager";
import { SearchBox } from "./search/SearchBox";
import { random } from "lodash";
import { DocumentView } from "./nodes/DocumentView";
+import { AudioBox } from "./nodes/AudioBox";
const modifiers = ["control", "meta", "shift", "alt"];
type KeyHandler = (keycode: string, e: KeyboardEvent) => KeyControlInfo | Promise<KeyControlInfo>;
@@ -121,6 +122,9 @@ export class KeyManager {
DragManager.AbortDrag();
} else if (CollectionDockingView.Instance.HasFullScreen) {
CollectionDockingView.Instance.CloseFullScreen();
+ } else if (AudioBox.SelectingRegion) {
+ AudioBox.SelectingRegion = undefined;
+ doDeselect = false;
} else {
doDeselect = !ContextMenu.Instance.closeMenu();
}