pull/2962/head
2dust 2023-01-02 19:59:48 +08:00
parent 9b4bf455b4
commit 42fd5b6eb2
2 changed files with 13 additions and 7 deletions

View File

@ -638,6 +638,8 @@ namespace v2rayN.ViewModels
_subId = SelectedSub?.id;
RefreshServers();
_updateView("ProfilesFocus");
}
private void ServerFilterChanged(bool c)

View File

@ -184,6 +184,10 @@ namespace v2rayN.Views
}
}));
}
else if (action == "ProfilesFocus")
{
lstProfiles.Focus();
}
}
private void MainWindow_Closing(object? sender, CancelEventArgs e)
@ -212,10 +216,10 @@ namespace v2rayN.Views
}
private void LstProfiles_LoadingRow(object? sender, DataGridRowEventArgs e)
{
if (e.Row.GetIndex() == 0)
{
lstProfiles.Focus();
}
//if (e.Row.GetIndex() == 0)
//{
// lstProfiles.Focus();
//}
e.Row.Header = e.Row.GetIndex() + 1;
}
@ -323,15 +327,15 @@ namespace v2rayN.Views
{
ViewModel?.MoveServer(EMove.Top);
}
else if (e.Key == Key.B)
else if (e.Key == Key.U)
{
ViewModel?.MoveServer(EMove.Up);
}
else if (e.Key == Key.U)
else if (e.Key == Key.D)
{
ViewModel?.MoveServer(EMove.Down);
}
else if (e.Key == Key.D)
else if (e.Key == Key.B)
{
ViewModel?.MoveServer(EMove.Bottom);
}