allow navigate to path
MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooser.xaml
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooser.xaml
<DrawingPresenter Drawing="{StaticResource LevelUp}" Stretch="Fill"/>
</Button>
</dialogs:ChildFitter>
- <TextBox x:Name="Location" IsReadOnly="True" Text="{Binding Location}" Margin="0 0 5 0"/>
+ <TextBox x:Name="Location" Text="{Binding Location}" Margin="0 0 5 0">
+ <TextBox.KeyBindings>
+ <KeyBinding Command="{Binding EnterLocationCommand}" Gesture="Enter"/>
+ </TextBox.KeyBindings>
+ </TextBox>
</DockPanel>
<DockPanel DockPanel.Dock="Bottom">
<StackPanel Orientation="Horizontal" DockPanel.Dock="Left">

MODIFY
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserViewModel.cs
WalletWasabi.Gui/ManagedDialogs/ManagedFileChooserViewModel.cs
@@ -2,6 +2,7 @@ using System;
using System.Collections.Specialized;
using System.IO;
using System.Linq;
+using System.Reactive;
using System.Runtime.InteropServices;
using Avalonia;
using Avalonia.Collections;
@@ -128,6 +129,14 @@ namespace WalletWasabi.Gui.ManagedDialogs
Navigate(directory, (dialog as FileDialog)?.InitialFileName);
SelectedItems.CollectionChanged += OnSelectionChangedAsync;
+
+ EnterLocationCommand = ReactiveCommand.Create(() =>
+ {
+ if(Directory.Exists(Location))
+ {
+ Navigate(Location);
+ }
+ });
}
private async void OnSelectionChangedAsync(object sender, NotifyCollectionChangedEventArgs e)
@@ -283,5 +292,7 @@ namespace WalletWasabi.Gui.ManagedDialogs
{
CompleteRequested?.Invoke(new[] { item.Path });
}
+
+ public ReactiveCommand<Unit, Unit> EnterLocationCommand { get; }
}
}

allow navigate to path