mirror of
https://github.com/sourcegit-scm/sourcegit
synced 2025-06-01 09:24:58 +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
|
@ -125,7 +125,7 @@ namespace SourceGit.Views
|
|||
DescriptionEditor.CaretIndex = 0;
|
||||
e.Handled = true;
|
||||
}
|
||||
else if (e.Key == Key.V && ((OperatingSystem.IsMacOS() && e.KeyModifiers == KeyModifiers.Meta) || (!OperatingSystem.IsMacOS() && e.KeyModifiers == KeyModifiers.Control)))
|
||||
else if (e.Key == Key.V && e.KeyModifiers == (OperatingSystem.IsMacOS() ? KeyModifiers.Meta : KeyModifiers.Control))
|
||||
{
|
||||
e.Handled = true;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue