aboutsummaryrefslogtreecommitdiff
path: root/src/client/views/nodes/DocumentView.tsx
diff options
context:
space:
mode:
authorSam Wilkins <samwilkins333@gmail.com>2019-08-04 14:04:22 -0400
committerSam Wilkins <samwilkins333@gmail.com>2019-08-04 14:04:22 -0400
commit857e98b16f693db968b04ede62e3f864f8b2ed35 (patch)
treedbff699f2be98d8de0398c72ca154b33b12502f3 /src/client/views/nodes/DocumentView.tsx
parent0010f88e1002feb14ecfb111c2c6ae56ee34cf2d (diff)
final UI tweaks
Diffstat (limited to 'src/client/views/nodes/DocumentView.tsx')
-rw-r--r--src/client/views/nodes/DocumentView.tsx12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/client/views/nodes/DocumentView.tsx b/src/client/views/nodes/DocumentView.tsx
index d6ae17537..57e66ff1b 100644
--- a/src/client/views/nodes/DocumentView.tsx
+++ b/src/client/views/nodes/DocumentView.tsx
@@ -536,15 +536,17 @@ export class DocumentView extends DocComponent<DocumentViewProps, Document>(Docu
this.props.Document.lockedPosition = BoolCast(this.props.Document.lockedPosition) ? undefined : true;
}
- listen = async () =>
+ listen = async () => {
Doc.GetProto(this.props.Document).transcript = await DictationManager.Controls.listen({
continuous: { indefinite: true },
interimHandler: (results: string) => {
- MainView.Instance.isListening = { interim: true };
- MainView.Instance.dictationSuccess = true;
- MainView.Instance.dictatedPhrase = results;
+ let main = MainView.Instance;
+ main.dictationSuccess = true;
+ main.dictatedPhrase = results;
+ main.isListening = { interim: true };
}
- })
+ });
+ }
@action
onContextMenu = async (e: React.MouseEvent): Promise<void> => {