mirror of
https://github.com/tuxdotrs/highminded.git
synced 2025-08-23 08:01:03 +05:30
feat: update keybindings
This commit is contained in:
@@ -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.** |
|
||||||
|
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
@@ -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(() =>
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user