diff options
author | bobzel <zzzman@gmail.com> | 2022-05-23 12:28:31 -0400 |
---|---|---|
committer | bobzel <zzzman@gmail.com> | 2022-05-23 12:28:31 -0400 |
commit | 3fe0e0e02a6c9bd717b3df9b000c13d1131f6eb4 (patch) | |
tree | 9a64bf73ed9f855f42b899b9455c4d5e2e806352 /src/client/views/nodes/FieldView.tsx | |
parent | 0cddc2350124f7ae870e362a4774de6f4d9a0545 (diff) |
cleaning up singleLine text box api and TreeView types
Diffstat (limited to 'src/client/views/nodes/FieldView.tsx')
-rw-r--r-- | src/client/views/nodes/FieldView.tsx | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/views/nodes/FieldView.tsx b/src/client/views/nodes/FieldView.tsx index 94937430e..79c1f1c40 100644 --- a/src/client/views/nodes/FieldView.tsx +++ b/src/client/views/nodes/FieldView.tsx @@ -5,7 +5,7 @@ import { DateField } from "../../../fields/DateField"; import { Doc, Field, FieldResult, Opt } from "../../../fields/Doc"; import { List } from "../../../fields/List"; import { WebField } from "../../../fields/URLField"; -import { DocumentViewSharedProps } from "./DocumentView"; +import { DocumentView, DocumentViewSharedProps } from "./DocumentView"; import { ScriptField } from "../../../fields/ScriptField"; // @@ -25,6 +25,7 @@ export interface FieldViewProps extends DocumentViewSharedProps { scaling?: () => number; setHeight?: (height: number) => void; onBrowseClick?: () => (ScriptField | undefined); + onKey?: (e: React.KeyboardEvent, fieldProps: FieldViewProps) => (boolean | undefined); // properties intended to be used from within layout strings (otherwise use the function equivalents that work more efficiently with React) pointerEvents?: () => Opt<string>; |