mirror of
https://github.com/keymanapp/keyman.git
synced 2026-09-26 17:47:40 +00:00
Merge pull request #677 from keymanapp/web-cookies-overwritten-by-stub-registration
[Web] Keyboard state cookie overwritten by first keyboard registration
This commit is contained in:
commit
a509b41555
1 changed files with 5 additions and 1 deletions
|
|
@ -324,7 +324,11 @@ namespace com.keyman {
|
|||
// If we have no activeStub because there were no stubs, set the new keyboard as active.
|
||||
// Do not trigger on merges.
|
||||
if(!this.activeStub && isNew && this.keyboardStubs.length == 1) {
|
||||
this.setActiveKeyboard(sp['KI'], sp['KLC']);
|
||||
// #676: We call _SetActiveKeyboard so we can avoid overwriting
|
||||
// cookies that determine our active keyboard at page load time
|
||||
this.doBeforeKeyboardChange(sp['KI'], sp['KLC']);
|
||||
this._SetActiveKeyboard(sp['KI'], sp['KLC'], false);
|
||||
this.doKeyboardChange(sp['KI'], sp['KLC']);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue