Example #1
0
        public static Task SetInputMode(AcceptedInputMode mode)
        {
            if (!display.IsDefault())
            {
                return(display.SetInputMode(mode));
            }

            return(Task.CompletedTask);
        }
Example #2
0
        internal async Task SetInputMode(AcceptedInputMode mode)
        {
            this.mode = mode;

            if (this.mode != AcceptedInputMode.None)
            {
                await JSInterop.Layout.Focus(this.textDisplayRef).ConfigureAwait(false);
            }

            this.StateHasChanged();
        }
Example #3
0
 public TextDisplay()
 {
     this.mode = AcceptedInputMode.None;
     TextDisplayStore.SetDisplay(this);
 }