diff --git a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
index e9bcd424c9..166a583363 100644
--- a/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
+++ b/src/settings-ui/Settings.UI/Strings/en-us/Resources.resw
@@ -370,6 +370,16 @@
Only connect to machines in the same intranet NNN.NNN.*.* (only works when both machines have IPv4 enabled)
+
+ Example: MyLaptop 192.168.0.24
+ Don't translate MyLaptop
+
+
+ IP address mapping
+
+
+ Resolve machine's IP address using manually entered mappings below.
+
Prevent screen saver from starting on other machines when user is actively working on this machine.
@@ -386,6 +396,9 @@
Keyboard shortcuts
keyboard is the hardware peripheral
+
+ Advanced Settings
+
Easy Mouse: move between machines by moving the mouse pointer to the screen edges.
diff --git a/src/settings-ui/Settings.UI/ViewModels/MouseWithoutBordersViewModel.cs b/src/settings-ui/Settings.UI/ViewModels/MouseWithoutBordersViewModel.cs
index 157115758f..d4fe23118b 100644
--- a/src/settings-ui/Settings.UI/ViewModels/MouseWithoutBordersViewModel.cs
+++ b/src/settings-ui/Settings.UI/ViewModels/MouseWithoutBordersViewModel.cs
@@ -736,6 +736,28 @@ namespace Microsoft.PowerToys.Settings.UI.ViewModels
}
}
+ public string Name2IP
+ {
+ // Due to https://github.com/microsoft/microsoft-ui-xaml/issues/1826, we must
+ // add back \n chars on set and remove them on get for the widget
+ // to make its behavior consistent with the old UI and MWB internal code.
+ get
+ {
+ return Settings.Properties.Name2IP.Value.Replace("\r\n", "\r");
+ }
+
+ set
+ {
+ var newValue = value.Replace("\r\n", "\n").Replace("\r", "\n").Replace("\n", "\r\n");
+
+ if (Settings.Properties.Name2IP.Value != newValue)
+ {
+ Settings.Properties.Name2IP.Value = newValue;
+ NotifyPropertyChanged();
+ }
+ }
+ }
+
public bool SameSubnetOnly
{
get
diff --git a/src/settings-ui/Settings.UI/Views/MouseWithoutBordersPage.xaml b/src/settings-ui/Settings.UI/Views/MouseWithoutBordersPage.xaml
index 62cfd18ca4..09560a2c82 100644
--- a/src/settings-ui/Settings.UI/Views/MouseWithoutBordersPage.xaml
+++ b/src/settings-ui/Settings.UI/Views/MouseWithoutBordersPage.xaml
@@ -386,6 +386,28 @@
+
+
+
+
+
+
+
+
+