Skip to content

Commit

Permalink
Merge pull request #520 from Belchy06/temp
Browse files Browse the repository at this point in the history
Fix edit text button not showing and warnings on desktop
  • Loading branch information
mcottontensor authored Mar 3, 2025
2 parents 199825e + 03822b6 commit e28eef9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Frontend/library/src/UI/OnScreenKeyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,13 @@ export class OnScreenKeyboard {
* @param command the command received via the data channel containing keyboard positions
*/
showOnScreenKeyboard(command: any) {
if (!this.editTextButton) {
return;
}

if (command.showOnScreenKeyboard) {
// Show the 'edit text' button.
this.editTextButton.style.display = 'default';
this.editTextButton.style.display = 'block';
// Place the 'edit text' button near the UE input widget.
const pos = this.unquantizeAndDenormalizeUnsigned(command.x, command.y);
this.editTextButton.style.top = pos.y.toString() + 'px';
Expand Down

0 comments on commit e28eef9

Please sign in to comment.