diff options
author | bobzel <zzzman@gmail.com> | 2021-01-25 16:32:27 -0500 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2021-01-25 16:32:27 -0500 |
commit | 2f443da0ded3020e55f23962cd8cb18e62b5834d (patch) | |
tree | 7e6a66f6a2ffb40919696c5241c232dc166d205b /src/client/views/GlobalKeyHandler.ts | |
parent | eba56b17b3e1f6c1cbabaafdeb4ee16421fd5a32 (diff) |
tweaks to double-tap interactions on videoBox. added Esc to cancel drag on video timeline.
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r-- | src/client/views/GlobalKeyHandler.ts | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts index 1c5277de0..342cdcd95 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -28,6 +28,7 @@ import { SearchBox } from "./search/SearchBox"; import { random } from "lodash"; import { DocumentView } from "./nodes/DocumentView"; import { AudioBox } from "./nodes/AudioBox"; +import { VideoBox } from "./nodes/VideoBox"; const modifiers = ["control", "meta", "shift", "alt"]; type KeyHandler = (keycode: string, e: KeyboardEvent) => KeyControlInfo | Promise<KeyControlInfo>; @@ -122,6 +123,9 @@ export class KeyManager { DragManager.AbortDrag(); } else if (CollectionDockingView.Instance.HasFullScreen) { CollectionDockingView.Instance.CloseFullScreen(); + } else if (VideoBox.SelectingRegion) { + VideoBox.SelectingRegion = undefined; + doDeselect = false; } else if (AudioBox.SelectingRegion) { AudioBox.SelectingRegion = undefined; doDeselect = false; |