diff options
author | Bob Zeleznik <zzzman@gmail.com> | 2019-12-11 20:41:42 -0500 |
---|---|---|
committer | Bob Zeleznik <zzzman@gmail.com> | 2019-12-11 20:41:42 -0500 |
commit | 239ce0bd5112d87791f80ba2dcaafd32086e5a4e (patch) | |
tree | 1b9d578bcbbb120428a6f33f3a8b49caa0f15200 /src | |
parent | 40e9d975c595f00b2047e8375a1d92530da35d75 (diff) |
from last
Diffstat (limited to 'src')
-rw-r--r-- | src/client/views/nodes/DocumentView.tsx | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx index 3620ccb34..11c012252 100644 --- a/src/client/views/nodes/DocumentView.tsx +++ b/src/client/views/nodes/DocumentView.tsx @@ -143,6 +143,7 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu if (e.altKey && (e.key === "†" || e.key === "t") && !(e.nativeEvent as any).StopPropagationForReal) { (e.nativeEvent as any).StopPropagationForReal = true; // e.stopPropagation() doesn't seem to work... e.stopPropagation(); + e.preventDefault(); if (!StrCast(this.Document.showTitle)) this.Document.showTitle = "title"; if (!this._titleRef.current) setTimeout(() => this._titleRef.current?.setIsFocused(true), 0); else if (!this._titleRef.current.setIsFocused(true)) { // if focus didn't change, focus on interior text... |