Search by regex, modal Enter fixes
This commit is contained in:
@@ -25,6 +25,7 @@ public class CommandPaletteViewModel : FuzzyPanelViewModel<ICommandPaletteEntryV
|
||||
IUserCommandHandlerService userCommandHandlerService,
|
||||
IKeyboardConfigurationService keyboardConfigurationService,
|
||||
ILogger<CommandPaletteViewModel> logger)
|
||||
: base((a, b) => a.Identifier == b.Identifier)
|
||||
{
|
||||
_commandPaletteService = commandPaletteService;
|
||||
_identifiableUserCommandService = identifiableUserCommandService;
|
||||
@@ -105,6 +106,13 @@ public class CommandPaletteViewModel : FuzzyPanelViewModel<ICommandPaletteEntryV
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public async Task<bool> HandleKeyUp(KeyEventArgs keyEventArgs)
|
||||
{
|
||||
if (keyEventArgs.Handled) return false;
|
||||
|
||||
if (keyEventArgs.Key == Key.Enter)
|
||||
{
|
||||
if (SelectedItem is null) return false;
|
||||
|
||||
Reference in New Issue
Block a user