diff --git a/src/ScriptRunner/ScriptRunner.GUI/ViewModels/MainWindowViewModel.cs b/src/ScriptRunner/ScriptRunner.GUI/ViewModels/MainWindowViewModel.cs
index e307043..9c9f58f 100644
--- a/src/ScriptRunner/ScriptRunner.GUI/ViewModels/MainWindowViewModel.cs
+++ b/src/ScriptRunner/ScriptRunner.GUI/ViewModels/MainWindowViewModel.cs
@@ -9,6 +9,7 @@
using System.Threading.Tasks;
using Avalonia;
using Avalonia.Controls;
+using Avalonia.Input;
using Avalonia.Threading;
using DynamicData;
using MessageBox.Avalonia.Enums;
@@ -126,6 +127,20 @@ public ScriptConfig? SelectedAction
}
}
}
+
+ public KeyGesture SearchBoxHotKey
+ {
+ get
+ {
+ if (OperatingSystem.IsMacOS())
+ {
+ // Cmd+P
+ return new KeyGesture(Key.P, KeyModifiers.Meta);
+ }
+ // Ctrl+P
+ return new KeyGesture(Key.P, KeyModifiers.Control);
+ }
+ }
private bool IsActionInstalled(string valueName)
{
diff --git a/src/ScriptRunner/ScriptRunner.GUI/Views/MainWindow.axaml b/src/ScriptRunner/ScriptRunner.GUI/Views/MainWindow.axaml
index a84d0f5..5e8c8a4 100644
--- a/src/ScriptRunner/ScriptRunner.GUI/Views/MainWindow.axaml
+++ b/src/ScriptRunner/ScriptRunner.GUI/Views/MainWindow.axaml
@@ -87,7 +87,7 @@
-
+