aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/GlobalKeyHandler.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-07-09 10:58:02 -0400
committerbob <bcz@cs.brown.edu>2019-07-09 10:58:02 -0400
commitb49fdb1c42b9758e006521e0f404634ba396a2ac (patch)
tree12dce7a5d61bb203aaad2c378294f415ae722e44 /src/client/views/GlobalKeyHandler.ts
parentbc4e7ceb8a738b890344c4564ab0d97e0a10293d (diff)
parent326cf48bf28340d1533565a19236411c4091d3b4 (diff)
Merge branch 'master' of https://github.com/browngraphicslab/Dash-Web
Diffstat (limited to 'src/client/views/GlobalKeyHandler.ts')
-rw-r--r--src/client/views/GlobalKeyHandler.ts8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index fb4a107ad..0d95bb96c 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -67,6 +67,14 @@ export default class KeyManager {
}
MainView.Instance.toggleColorPicker(true);
break;
+ case "delete":
+ case "backspace":
+ SelectionManager.SelectedDocuments().map(docView => {
+ let doc = docView.props.Document;
+ let remove = docView.props.removeDocument;
+ remove && remove(doc);
+ });
+ break;
}
return {