@page "/openbirch" @inject OpenBirchConsole console @inject IJSRuntime js
@code { public string inputField = ""; async void OnKeyDown(KeyboardEventArgs args) { if (args.Key == "Enter") { await Task.Delay(100); sendCommand(inputField); StateHasChanged(); } } private async void sendCommand(string command) { inputField = ""; await console.pushCommand(command); await InvokeAsync(StateHasChanged); } protected override async Task OnInitializedAsync() { } }