mirror of
https://github.com/2dust/v2rayN.git
synced 2025-05-03 05:38:51 +00:00
Delete shortcut keys for routing rules
This commit is contained in:
parent
7b3bed015a
commit
ca4e8960d2
3 changed files with 9 additions and 1 deletions
|
@ -167,7 +167,7 @@ namespace v2rayN.ViewModels
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void RuleRemove()
|
public void RuleRemove()
|
||||||
{
|
{
|
||||||
if (SelectedSource is null || SelectedSource.outboundTag.IsNullOrEmpty())
|
if (SelectedSource is null || SelectedSource.outboundTag.IsNullOrEmpty())
|
||||||
{
|
{
|
||||||
|
|
|
@ -90,6 +90,10 @@ namespace v2rayN.Views
|
||||||
{
|
{
|
||||||
ViewModel?.MoveRule(EMove.Bottom);
|
ViewModel?.MoveRule(EMove.Bottom);
|
||||||
}
|
}
|
||||||
|
else if (e.Key == Key.Delete)
|
||||||
|
{
|
||||||
|
ViewModel?.RuleRemove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -88,6 +88,10 @@ namespace v2rayN.Views
|
||||||
{
|
{
|
||||||
ViewModel?.RoutingAdvancedSetDefault();
|
ViewModel?.RoutingAdvancedSetDefault();
|
||||||
}
|
}
|
||||||
|
else if (e.Key == Key.Delete)
|
||||||
|
{
|
||||||
|
ViewModel?.RoutingAdvancedRemove();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void menuRoutingAdvancedSelectAll_Click(object sender, System.Windows.RoutedEventArgs e)
|
private void menuRoutingAdvancedSelectAll_Click(object sender, System.Windows.RoutedEventArgs e)
|
||||||
|
|
Loading…
Reference in a new issue