aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/collections/CollectionNoteTakingView.tsx
diff options
context:
space:
mode:
authorbobzel <zzzman@gmail.com>2025-03-23 20:51:21 -0400
committerbobzel <zzzman@gmail.com>2025-03-23 20:51:21 -0400
commit288a0095bf7e54b0c1765ba994f5f203fd8507cf (patch)
tree7de076c7a6678ec343631c05f4c7fd21c10f31a6 /src/client/views/collections/CollectionNoteTakingView.tsx
parent705975eb43e7904c62e7e847478f6d0dac60d443 (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/CollectionNoteTakingView.tsx')
-rw-r--r--src/client/views/collections/CollectionNoteTakingView.tsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/views/collections/CollectionNoteTakingView.tsx b/src/client/views/collections/CollectionNoteTakingView.tsx
index 2dabd3269..01695dbaf 100644
--- a/src/client/views/collections/CollectionNoteTakingView.tsx
+++ b/src/client/views/collections/CollectionNoteTakingView.tsx
@@ -271,7 +271,7 @@ export class CollectionNoteTakingView extends CollectionSubView() {
containerViewPath={this.childContainerViewPath}
fitWidth={this._props.childLayoutFitWidth}
isContentActive={emptyFunction}
- onKey={this.onKeyDown}
+ onKey={this.onKey}
// TODO: change this from a prop to a parameter passed into a function
dontHideOnDrag
isDocumentActive={this.isContentActive}
@@ -438,7 +438,7 @@ export class CollectionNoteTakingView extends CollectionSubView() {
};
@undoBatch
- onKeyDown = (e: React.KeyboardEvent, textBox: FormattedTextBox) => {
+ onKey = (e: KeyboardEvent, textBox: FormattedTextBox) => {
if ((e.ctrlKey || textBox.Document._createDocOnCR) && ['Enter'].includes(e.key)) {
e.stopPropagation?.();
const newDoc = Doc.MakeCopy(textBox.Document, true);