Forum Discussion
lostsomfan
6 years agoProtege
Unity > Inputfield UI turns Quest black for a moment.
On Oculus Go we found out they didn't give access to android keyboard (which standard android provides with), so it pops up a green "error" in lower area of headset and we solved it with our own virtu...
treehousenorris
6 years agoExplorer
Here is a concept I've used for an android webapp to programmatically close the soft keyboard when submitting a form (without an event.stopPropagation kind of thing):
<form>
<input type="email" placeholder="Your Email" [disabled]="isSubmitting"/>
<input type="password" placeholder="Your Password" [disabled]="isSubmitting"/>
<button [disabled]="isSubmitting" (click)="submitForm($event)">LOG IN</button>
</form>
<script>
submitForm(event: any): void {
var elem = event.target;
elem.focus(); // If a form field, draw focus to the submitBtn so the soft keyboard will close
elem.blur(); // Blur the standalone field so the soft keyboard will close or
// remove highlight from the submitBtn
isSubmitting = true;
//...
}
</script>
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 1 year ago
- 9 months ago