diff options
| author | andrewdkim <adkim414@gmail.com> | 2019-07-23 17:26:00 -0400 |
|---|---|---|
| committer | andrewdkim <adkim414@gmail.com> | 2019-07-23 17:26:00 -0400 |
| commit | 310f83002d715d50a32754fe78d48fc993edebe6 (patch) | |
| tree | d59ebc84f6c69295ccf66fbb62deaf7721bdc54a /src/client/views/GlobalKeyHandler.ts | |
| parent | b1aeba02f24215735e338b6245faf840f69ba7b4 (diff) | |
| parent | 97776a0f1725de5b512b803497af0801141c7f73 (diff) | |
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web into animationtimeline
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 f378b6c0c..e8a588e58 100644 --- a/src/client/views/GlobalKeyHandler.ts +++ b/src/client/views/GlobalKeyHandler.ts @@ -4,6 +4,7 @@ import { CollectionDockingView } from "./collections/CollectionDockingView"; import { MainView } from "./MainView"; import { DragManager } from "../util/DragManager"; import { action } from "mobx"; +import { Doc } from "../../new_fields/Doc"; const modifiers = ["control", "meta", "shift", "alt"]; type KeyHandler = (keycode: string, e: KeyboardEvent) => KeyControlInfo; @@ -82,6 +83,9 @@ export default class KeyManager { }); }, "delete"); break; + case "enter": + SelectionManager.SelectedDocuments().map(selected => Doc.ToggleDetailLayout(selected.props.Document)); + break; } return { |
