diff --git a/common/core/web/input-processor/src/text/prediction/languageProcessor.ts b/common/core/web/input-processor/src/text/prediction/languageProcessor.ts index eda367f2ce..f6babab420 100644 --- a/common/core/web/input-processor/src/text/prediction/languageProcessor.ts +++ b/common/core/web/input-processor/src/text/prediction/languageProcessor.ts @@ -186,7 +186,7 @@ namespace com.keyman.text.prediction { return this.predict_internal(transcription); } - public applySuggestion(suggestion: Suggestion, outputTarget: OutputTarget): Promise { + public applySuggestion(suggestion: Suggestion, outputTarget: OutputTarget): Promise { if(!outputTarget) { throw "Accepting suggestions requires a destination OutputTarget instance." } diff --git a/common/predictive-text/worker/model-compositor.ts b/common/predictive-text/worker/model-compositor.ts index 6bddef94c5..1f93cb62e9 100644 --- a/common/predictive-text/worker/model-compositor.ts +++ b/common/predictive-text/worker/model-compositor.ts @@ -341,7 +341,7 @@ class ModelCompositor { return { transform: suggestion.transform, transformId: suggestion.transformId, - displayAs: QuoteBehavior.apply(quoteBehavior, suggestion.displayAs, this.punctuation, QuoteBehavior.useQuotes), + displayAs: QuoteBehavior.apply(quoteBehavior, suggestion.displayAs, this.punctuation, defaultQuoteBehavior), tag: annotationType, p: suggestion.p }; diff --git a/web/source/osk/banner.ts b/web/source/osk/banner.ts index a1e9252450..c8110840dc 100644 --- a/web/source/osk/banner.ts +++ b/web/source/osk/banner.ts @@ -244,7 +244,7 @@ namespace com.keyman.osk { * @param target (Optional) The OutputTarget to which the `Suggestion` ought be applied. * Description Applies the predictive `Suggestion` represented by this `BannerSuggestion`. */ - public apply(target?: text.OutputTarget): Promise { + public apply(target?: text.OutputTarget): Promise { let keyman = com.keyman.singleton; if(this.isEmpty()) { @@ -531,13 +531,13 @@ namespace com.keyman.osk { private currentSuggestions: Suggestion[] = []; private keepSuggestion: Suggestion; - private revertSuggestion: Suggestion; + private revertSuggestion: Reversion; private currentTranscriptionID: number; private recentAccept: boolean = false; private recentAccepted: Suggestion; - private revertAcceptancePromise: Promise; + private revertAcceptancePromise: Promise; private preAccept: text.Transcription = null; private swallowPrediction: boolean = false;