mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-23 21:24:59 +00:00
feature: use F1
to quick open the Keyboard Shortcuts Reference
dialog (#1225)
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
9f18cbca5b
commit
4c3698b171
3 changed files with 18 additions and 1 deletions
|
@ -141,6 +141,13 @@ namespace SourceGit.Views
|
|||
return;
|
||||
}
|
||||
|
||||
// F1 opens preference dialog (macOS use hotkeys in system menu bar)
|
||||
if (!OperatingSystem.IsMacOS() && e.Key == Key.F1)
|
||||
{
|
||||
App.ShowWindow(new Hotkeys(), true);
|
||||
return;
|
||||
}
|
||||
|
||||
// Ctrl+Q quits the application (macOS use hotkeys in system menu bar)
|
||||
if (!OperatingSystem.IsMacOS() && e.KeyModifiers == KeyModifiers.Control && e.Key == Key.Q)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue