TextBox, PropertyChangeHandler
This commit is contained in:
@@ -7,6 +7,7 @@ using FileTime.App.Core.ViewModels;
|
||||
using FileTime.Core.Extensions;
|
||||
using FileTime.Core.Models;
|
||||
using FileTime.Core.Models.Extensions;
|
||||
using GeneralInputKey;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
namespace FileTime.App.Core.Services;
|
||||
@@ -57,9 +58,14 @@ public class DefaultModeKeyInputHandler : IDefaultModeKeyInputHandler
|
||||
_keysToSkip.Add(new[] {new KeyConfig(Keys.RWin)});
|
||||
}
|
||||
|
||||
public async Task HandleInputKey(GeneralKeyEventArgs args, SpecialKeysStatus specialKeysStatus)
|
||||
public async Task HandleInputKey(GeneralKeyEventArgs args)
|
||||
{
|
||||
var keyWithModifiers = new KeyConfig(args.Key, shift: specialKeysStatus.IsShiftPressed, alt: specialKeysStatus.IsAltPressed, ctrl: specialKeysStatus.IsCtrlPressed);
|
||||
var keyWithModifiers = new KeyConfig(
|
||||
args.Key,
|
||||
shift: args.SpecialKeysStatus.IsShiftPressed,
|
||||
alt: args.SpecialKeysStatus.IsAltPressed,
|
||||
ctrl: args.SpecialKeysStatus.IsCtrlPressed);
|
||||
|
||||
_appState.PreviousKeys.Add(keyWithModifiers);
|
||||
|
||||
var selectedCommandBinding = _keyboardConfigurationService.UniversalCommandBindings.FirstOrDefault(c => c.Keys.AreKeysEqual(_appState.PreviousKeys));
|
||||
|
||||
@@ -5,6 +5,7 @@ using FileTime.App.Core.UserCommand;
|
||||
using FileTime.App.Core.ViewModels;
|
||||
using FileTime.Core.Extensions;
|
||||
using FileTime.Core.Models;
|
||||
using GeneralInputKey;
|
||||
using Humanizer;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
@@ -54,7 +55,7 @@ public class RapidTravelModeKeyInputHandler : IRapidTravelModeKeyInputHandler
|
||||
});
|
||||
}
|
||||
|
||||
public async Task HandleInputKey(GeneralKeyEventArgs args, SpecialKeysStatus specialKeysStatus)
|
||||
public async Task HandleInputKey(GeneralKeyEventArgs args)
|
||||
{
|
||||
var keyString = args.Key.Humanize();
|
||||
|
||||
|
||||
@@ -140,10 +140,9 @@ public class NavigationUserCommandHandlerService : UserCommandHandlerServiceBase
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
private Task GoByFrequency()
|
||||
private async Task GoByFrequency()
|
||||
{
|
||||
_frequencyNavigationService.OpenNavigationWindow();
|
||||
return Task.CompletedTask;
|
||||
await _frequencyNavigationService.OpenNavigationWindow();
|
||||
}
|
||||
|
||||
private async Task GoToPath()
|
||||
|
||||
Reference in New Issue
Block a user