public static Task SetInputMode(AcceptedInputMode mode) { if (!display.IsDefault()) { return(display.SetInputMode(mode)); } return(Task.CompletedTask); }
internal async Task SetInputMode(AcceptedInputMode mode) { this.mode = mode; if (this.mode != AcceptedInputMode.None) { await JSInterop.Layout.Focus(this.textDisplayRef).ConfigureAwait(false); } this.StateHasChanged(); }
public TextDisplay() { this.mode = AcceptedInputMode.None; TextDisplayStore.SetDisplay(this); }