From 72f50feacb1c023d093b8169ef85e1e7773aa483 Mon Sep 17 00:00:00 2001
From: Bob Zeleznik <zzzman@gmail.com>
Date: Tue, 4 Feb 2020 00:12:52 -0500
Subject: from last

---
 src/client/util/RichTextSchema.tsx | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'src/client/util/RichTextSchema.tsx')

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);
-- 
cgit v1.2.3-70-g09d2

