Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select: Fix SearchBox Space Key Not Working #359

Merged
merged 1 commit into from
Mar 10, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -706,7 +706,7 @@ protected override async Task OnAfterRenderAsync(bool firstRender)
//EnableLogging = true,
TargetClass = "mud-list-item-extended",
Keys = {
new KeyOptions { Key=" ", PreventDown = "key+none" }, //prevent scrolling page, toggle open/close
//new KeyOptions { Key=" ", PreventDown = "key+none" }, //prevent scrolling page, toggle open/close
new KeyOptions { Key="ArrowUp", PreventDown = "key+none" }, // prevent scrolling page, instead hilight previous item
new KeyOptions { Key="ArrowDown", PreventDown = "key+none" }, // prevent scrolling page, instead hilight next item
new KeyOptions { Key="Home", PreventDown = "key+none" },
Expand Down Expand Up @@ -819,7 +819,9 @@ protected internal async Task SearchBoxHandleKeyDown(KeyboardEventArgs obj)
switch (obj.Key)
{
case " ":
_searchString = _searchString + " ";
await SearchChanged(_searchString + " ");
//_searchString = _searchString + " ";
//await OnSearchStringChange.InvokeAsync(_searchString);
await _searchField.BlurAsync();
await _searchField.FocusAsync();
StateHasChanged();
Expand Down
Loading