aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoryipstanley <stanley_yip@brown.edu>2019-07-28 18:20:28 -0400
committeryipstanley <stanley_yip@brown.edu>2019-07-28 18:20:28 -0400
commit6d6ceb1f0c0ebc18fd52783baca6da28b3f75ec0 (patch)
treeda18d11d65ab45dbf37e974c0055963d1d6468b2 /src
parent3f54bd76fd806ac3e7b2380fe45e71549ea65955 (diff)
ctrl backpsace now works when editing text
Diffstat (limited to 'src')
-rw-r--r--src/client/views/GlobalKeyHandler.ts7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/client/views/GlobalKeyHandler.ts b/src/client/views/GlobalKeyHandler.ts
index d52c05b2f..e31b44514 100644
--- a/src/client/views/GlobalKeyHandler.ts
+++ b/src/client/views/GlobalKeyHandler.ts
@@ -133,6 +133,13 @@ export default class KeyManager {
}
MainView.Instance.mainFreeform && CollectionDockingView.Instance.CloseRightSplit(MainView.Instance.mainFreeform);
break;
+ case "backspace":
+ if (document.activeElement) {
+ if (document.activeElement.tagName === "INPUT" || document.activeElement.tagName === "TEXTAREA") {
+ return { stopPropagation: false, preventDefault: false };
+ }
+ }
+ break;
case "f":
MainView.Instance.isSearchVisible = !MainView.Instance.isSearchVisible;
break;