mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-05-22 12:45:00 +00:00
code_style: simplify the way detacting system preferred command key
Signed-off-by: leo <longshuang@msn.cn>
This commit is contained in:
parent
d50b2c0298
commit
c72506d939
3 changed files with 3 additions and 6 deletions
|
@ -115,8 +115,7 @@ namespace SourceGit.Views
|
|||
return;
|
||||
}
|
||||
|
||||
if ((OperatingSystem.IsMacOS() && e.KeyModifiers.HasFlag(KeyModifiers.Meta)) ||
|
||||
(!OperatingSystem.IsMacOS() && e.KeyModifiers.HasFlag(KeyModifiers.Control)))
|
||||
if (e.KeyModifiers.HasFlag(OperatingSystem.IsMacOS() ? KeyModifiers.Meta : KeyModifiers.Control))
|
||||
{
|
||||
if (e.Key == Key.W)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue