feat: update keybindings

This commit is contained in:
tux
2025-07-05 06:30:30 +05:30
parent 7ffdfea18f
commit 335f58a60c
3 changed files with 20 additions and 10 deletions

View File

@@ -46,9 +46,9 @@ Get the appropriate binary for your platform from the [release page](https://git
| Bind | Action | | Bind | Action |
|--------------------------------|----------------------------------------------------------------------------------------------------------------| |--------------------------------|----------------------------------------------------------------------------------------------------------------|
| `Shift` + `\` | Toggle Window Visibility | | `Alt` + `Shift` + `\` | Toggle Window Visibility |
| `Shift` + `S` | Capture screenshot and send to LLM | | `Alt` + `Shift` + `S` | Capture screenshot and send to LLM |
| `Shift` + `A` | Capture audio and send to LLM | | `Alt` + `Shift` + `A` | Capture audio and send to LLM |
| `Alt` + `Shift` + `Q` | Quit application | | `Alt` + `Shift` + `Q` | Quit application |
| `Ctrl` + `Alt` + `Shift` + `H` | Make windows visible to screenshare.<br> **Note: Application restart is required to make it invisible again.** | | `Ctrl` + `Alt` + `Shift` + `H` | Make windows visible to screenshare.<br> **Note: Application restart is required to make it invisible again.** |

View File

@@ -5,9 +5,9 @@ namespace highminded.models;
public partial class MainViewModel : ObservableObject public partial class MainViewModel : ObservableObject
{ {
[ObservableProperty] private string _appName = "High Minded"; [ObservableProperty] private string _appName = "High Minded";
[ObservableProperty] private string _hideShortcutKey = "SHIFT + \\"; [ObservableProperty] private string _hideShortcutKey = "ALT + SHIFT + \\";
[ObservableProperty] private string _screenshotShortcutKey = "SHIFT + S"; [ObservableProperty] private string _screenshotShortcutKey = "ALT + SHIFT + S";
[ObservableProperty] private string _audioShortcutKey = "SHIFT + A"; [ObservableProperty] private string _audioShortcutKey = "ALT + SHIFT + A";
[ObservableProperty] private bool _isRecording = false; [ObservableProperty] private bool _isRecording = false;
[ObservableProperty] private bool _isHidden = true; [ObservableProperty] private bool _isHidden = true;
} }

View File

@@ -157,14 +157,24 @@ public partial class MainWindow : Window
ShowOverlay(); ShowOverlay();
} }
if (hasShift && hasS) if (hasAlt && hasShift && hasS)
{ {
Dispatcher.UIThread.Post(() => { _chatUserControl.SendScreenshot(); }); Dispatcher.UIThread.Post(() => { _chatUserControl.SendScreenshot(); });
} }
if (hasShift && hasA) if (hasAlt && hasShift && hasA)
{ {
Dispatcher.UIThread.Post(() => { _chatUserControl.StartRecord(); }); Dispatcher.UIThread.Post(() =>
{
if (!InMemoryDb.Obj.MainViewModel.IsRecording)
{
_chatUserControl.StartRecord();
}
else
{
_chatUserControl.StopRecord();
}
});
} }
if (hasAlt && hasShift && hasQ) if (hasAlt && hasShift && hasQ)
@@ -172,7 +182,7 @@ public partial class MainWindow : Window
Dispatcher.UIThread.Post(() => { Environment.Exit(0); }); Dispatcher.UIThread.Post(() => { Environment.Exit(0); });
} }
if (hasShift && hasBackslash) if (hasAlt && hasShift && hasBackslash)
{ {
Dispatcher.UIThread.Post(() => Dispatcher.UIThread.Post(() =>
{ {