mirror of https://github.com/2dust/v2rayN
Enter to set active routing rules
parent
75742d8a9e
commit
b8644268b3
|
@ -1024,7 +1024,7 @@ namespace v2rayN.Resx {
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// 查找类似 Set as active rule 的本地化字符串。
|
||||
/// 查找类似 Set as active rule(Enter) 的本地化字符串。
|
||||
/// </summary>
|
||||
public static string menuRoutingAdvancedSetDefault {
|
||||
get {
|
||||
|
|
|
@ -881,7 +881,7 @@
|
|||
<value>Remove selected</value>
|
||||
</data>
|
||||
<data name="menuRoutingAdvancedSetDefault" xml:space="preserve">
|
||||
<value>Set as active rule</value>
|
||||
<value>Set as active rule(Enter)</value>
|
||||
</data>
|
||||
<data name="menuRoutingBasic" xml:space="preserve">
|
||||
<value>Basic Function</value>
|
||||
|
|
|
@ -881,7 +881,7 @@
|
|||
<value>移除所选规则</value>
|
||||
</data>
|
||||
<data name="menuRoutingAdvancedSetDefault" xml:space="preserve">
|
||||
<value>设为活动规则</value>
|
||||
<value>设为活动规则 (Enter)</value>
|
||||
</data>
|
||||
<data name="menuRoutingBasic" xml:space="preserve">
|
||||
<value>基础功能</value>
|
||||
|
|
|
@ -280,7 +280,7 @@ namespace v2rayN.ViewModels
|
|||
IsModified = true;
|
||||
}
|
||||
|
||||
private void RoutingAdvancedSetDefault()
|
||||
public void RoutingAdvancedSetDefault()
|
||||
{
|
||||
var item = LazyConfig.Instance.GetRoutingItem(SelectedSource?.id);
|
||||
if (item is null)
|
||||
|
|
|
@ -84,6 +84,10 @@ namespace v2rayN.Views
|
|||
lstRoutings.SelectAll();
|
||||
}
|
||||
}
|
||||
else if (e.Key is Key.Enter or Key.Return)
|
||||
{
|
||||
ViewModel?.RoutingAdvancedSetDefault();
|
||||
}
|
||||
}
|
||||
|
||||
private void menuRoutingAdvancedSelectAll_Click(object sender, System.Windows.RoutedEventArgs e)
|
||||
|
|
Loading…
Reference in New Issue