diff options
author | bobzel <zzzman@gmail.com> | 2023-03-22 14:20:09 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2023-03-22 14:20:09 -0400 |
commit | 2a4e86be98ad0f8d4aa4cb09b982d448b542d916 (patch) | |
tree | 6f1912bd4f5c049b83102db1d413d38372bb0fdc /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | b25f333713706a7456ab418960082bcabe830f11 (diff) |
removed gitlike and branch stuff. updated fortawesome. added Z ordering buttons. moved ctrl-t/alt-t to edit text title into formattedTextBox
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index da10bb0dc..a2c1195cb 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1669,8 +1669,10 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FieldViewProps }; onKeyDown = (e: React.KeyboardEvent) => { - if (e.altKey) { + if ((e.altKey || e.ctrlKey) && e.key === 't') { e.preventDefault(); + e.stopPropagation(); + this.props.setTitleFocus?.(); return; } const state = this._editorView!.state; |