mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-08 00:27:42 +00:00
chore(android/engine): Revert some changes in android-host.js
This commit is contained in:
parent
68f2661e1f
commit
44fa59b463
1 changed files with 6 additions and 3 deletions
|
|
@ -107,7 +107,6 @@ function setBannerHeight(h) {
|
|||
|
||||
// Refresh KMW's OSK
|
||||
keyman.refreshOskLayout();
|
||||
doResetContext();
|
||||
}
|
||||
|
||||
function setOskHeight(h) {
|
||||
|
|
@ -118,7 +117,6 @@ function setOskHeight(h) {
|
|||
keyman.core.activeKeyboard.refreshLayouts();
|
||||
}
|
||||
keyman.refreshOskLayout();
|
||||
doResetContext();
|
||||
}
|
||||
|
||||
function setOskWidth(w) {
|
||||
|
|
@ -205,13 +203,18 @@ function enableSuggestions(model, mayPredict, mayCorrect) {
|
|||
keyman.core.languageProcessor.mayPredict = mayPredict;
|
||||
keyman.core.languageProcessor.mayCorrect = mayCorrect;
|
||||
|
||||
keyman.addModel(model);
|
||||
registerModel(model);
|
||||
}
|
||||
|
||||
function setBannerOptions(mayPredict) {
|
||||
keyman.core.languageProcessor.mayPredict = mayPredict;
|
||||
}
|
||||
|
||||
function registerModel(model) {
|
||||
//window.console.log('registerModel: ' + model);
|
||||
keyman.addModel(model);
|
||||
}
|
||||
|
||||
function resetContext() {
|
||||
keyman.resetContext();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue