diff options
| author | bobzel <zzzman@gmail.com> | 2025-03-23 20:51:21 -0400 |
|---|---|---|
| committer | bobzel <zzzman@gmail.com> | 2025-03-23 20:51:21 -0400 |
| commit | 288a0095bf7e54b0c1765ba994f5f203fd8507cf (patch) | |
| tree | 7de076c7a6678ec343631c05f4c7fd21c10f31a6 /src/client/views/collections/CollectionStackingView.tsx | |
| parent | 705975eb43e7904c62e7e847478f6d0dac60d443 (diff) | |
fixed more typing errors. fixed updateBullets to not generate error when part of selection is not on a list.
Diffstat (limited to 'src/client/views/collections/CollectionStackingView.tsx')
| -rw-r--r-- | src/client/views/collections/CollectionStackingView.tsx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionStackingView.tsx b/src/client/views/collections/CollectionStackingView.tsx index 883b0bbe3..fd48a9dc1 100644 --- a/src/client/views/collections/CollectionStackingView.tsx +++ b/src/client/views/collections/CollectionStackingView.tsx @@ -310,7 +310,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection return this._props.styleProvider?.(doc, props, property); }; @undoBatch - onKeyDown = (e: React.KeyboardEvent, textBox: FormattedTextBox) => { + onKey = (e: KeyboardEvent, textBox: FormattedTextBox) => { if (['Enter'].includes(e.key) && e.ctrlKey) { e.stopPropagation?.(); const layoutFieldKey = StrCast(textBox.fieldKey); @@ -359,7 +359,7 @@ export class CollectionStackingView extends CollectionSubView<Partial<collection containerViewPath={this.childContainerViewPath} fitWidth={this.childFitWidth} isContentActive={doc.onClick ? this.isChildButtonContentActive : this.isChildContentActive} - onKey={this.onKeyDown} + onKey={this.onKey} DataTransition={trans} isDocumentActive={this.isContentActive} LayoutTemplate={this._props.childLayoutTemplate} |
