diff options
author | bobzel <zzzman@gmail.com> | 2025-04-08 10:52:59 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2025-04-08 10:52:59 -0400 |
commit | 840d5b3b3a0e907b0ca74abb9ad57e09bfbc0b76 (patch) | |
tree | b25d0b025919e3b1c63cc701494a3f78fbb16625 /src/client/views/nodes/formattedText/FormattedTextBox.tsx | |
parent | 40b8e5c30e7251db6258cac5b4ed5fb4a6a2418d (diff) |
changed border color icon
Diffstat (limited to 'src/client/views/nodes/formattedText/FormattedTextBox.tsx')
-rw-r--r-- | src/client/views/nodes/formattedText/FormattedTextBox.tsx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/views/nodes/formattedText/FormattedTextBox.tsx b/src/client/views/nodes/formattedText/FormattedTextBox.tsx index 341340363..2a1ec0881 100644 --- a/src/client/views/nodes/formattedText/FormattedTextBox.tsx +++ b/src/client/views/nodes/formattedText/FormattedTextBox.tsx @@ -1760,7 +1760,7 @@ export class FormattedTextBox extends ViewBoxAnnotatableComponent<FormattedTextB */ tryKeepingFocus = (target: Element | null) => { for (let newFocusEle = target instanceof HTMLElement ? target : null; newFocusEle; newFocusEle = newFocusEle?.parentElement) { - // test if parent of new focused element is a UI button (should be more specific than testing className) + // bcz: HACK!! test if parent of new focused element is a UI button (should be more specific than testing className) if (['fonticonbox', 'antimodeMenu-cont', 'popup-container'].includes(newFocusEle?.className ?? '')) { return this.EditorView?.focus(); // keep focus on text box } |