Skip to content

Commit

Permalink
chore(web): Revert "fix(web): OSK set activeKeyboard should not bypas…
Browse files Browse the repository at this point in the history
…s during init"

This reverts commit eebf3e5.
  • Loading branch information
jahorton authored and mcdurdin committed Jul 26, 2024
1 parent 752a2e1 commit f1619f2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions web/src/engine/osk/src/views/oskView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ export default abstract class OSKView
private _baseFontSize: ParsedLengthStyle;

private needsLayout: boolean = true;
private initialized: boolean;

private _animatedHideTimeout: number;

Expand Down Expand Up @@ -258,9 +257,6 @@ export default abstract class OSKView
if(this.hostDevice.touchable) {
this.setBaseTouchEventListeners();
}

this._Box.style.display = 'none';
this.initialized = true;
}

protected get configuration(): Configuration {
Expand Down Expand Up @@ -550,7 +546,7 @@ export default abstract class OSKView
//
// Note: ensures that the _instances_ are the same; it's possible to make new instances
// to force a refresh. Does not perform a deep-equals.
if(this.initialized && this.keyboardData?.keyboard == keyboardData?.keyboard && this.keyboardData?.metadata == keyboardData?.metadata) {
if(this.keyboardData?.keyboard == keyboardData?.keyboard && this.keyboardData?.metadata == keyboardData?.metadata) {
return;
}
this.keyboardData = keyboardData;
Expand Down

0 comments on commit f1619f2

Please sign in to comment.