diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2020-02-04 00:12:52 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2020-02-04 00:12:52 -0500 |
commit | 72f50feacb1c023d093b8169ef85e1e7773aa483 (patch) | |
tree | 06fd3f5e5d073ed64bf2a6cd0e8e7d0e7415ae3f /src | |
parent | 6247bfe9aee9ea7f1a04b1aa154d22629a927042 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/util/RichTextSchema.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/util/RichTextSchema.tsx b/src/client/util/RichTextSchema.tsx index b98e422cb..c07ebe2ed 100644 --- a/src/client/util/RichTextSchema.tsx +++ b/src/client/util/RichTextSchema.tsx @@ -874,10 +874,16 @@ export class DashFieldView { this._fieldSpan.style.minWidth = "50px"; this._fieldSpan.style.backgroundColor = "rgba(155, 155, 155, 0.24)"; this._fieldSpan.addEventListener("input", this.onchanged); + this._fieldSpan.onkeypress = function (e: any) { e.stopPropagation(); }; + this._fieldSpan.onkeyup = function (e: any) { e.stopPropagation(); }; + this._fieldSpan.onmousedown = function (e: any) { + console.log(e); + e.stopPropagation(); + }; const self = this; this._fieldSpan.onkeydown = function (e: any) { e.stopPropagation(); - if (e.key === "Tab" || e.key === "Enter" || (e.key === "a" && e.ctrlKey) || (e.key === "a" && e.metaKey)) { + if ((e.key === "a" && e.ctrlKey) || (e.key === "a" && e.metaKey)) { if (window.getSelection) { var range = document.createRange(); range.selectNodeContents(self._fieldSpan); |