Skip to content

Commit

Permalink
HxInputTagsInternal code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
hakenr committed Sep 7, 2022
1 parent c7f1cdf commit 4deead6
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -186,7 +186,7 @@ protected async Task HandleInputKeyDown(KeyboardEventArgs args)
await RemoveTagWithEventCallbackAsync(ValueEffective.Last());
}

await AdjustFocusedItemIndexByKeyPressed(args);
await UpdateFocusedItemAsync(args);
}

private async Task HandleInputInput(string newUserInput)
Expand Down Expand Up @@ -371,7 +371,7 @@ private async Task UpdateSuggestionsAsync(bool bypassShow = false)
/// </summary>
private const int InputKeyboardNavigationIndex = -1;

private async Task AdjustFocusedItemIndexByKeyPressed(KeyboardEventArgs keyboardEventArgs)
private async Task UpdateFocusedItemAsync(KeyboardEventArgs keyboardEventArgs)
{
// Confirm selection on the focused item if an item is focused and the enter key is pressed.
string focusedItem = GetItemByIndex(focusedItemIndex);
Expand Down

0 comments on commit 4deead6

Please sign in to comment.