Browse Source
Merge branch 'master' into fixes/FontMetrics
pull/4863/head
Jumar Macato
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
4 additions and
1 deletions
-
src/Avalonia.Input/KeyGesture.cs
|
|
|
@ -144,7 +144,10 @@ namespace Avalonia.Input |
|
|
|
return s.ToString(); |
|
|
|
} |
|
|
|
|
|
|
|
public bool Matches(KeyEventArgs keyEvent) => ResolveNumPadOperationKey(keyEvent.Key) == Key && keyEvent.KeyModifiers == KeyModifiers; |
|
|
|
public bool Matches(KeyEventArgs keyEvent) => |
|
|
|
keyEvent != null && |
|
|
|
keyEvent.KeyModifiers == KeyModifiers && |
|
|
|
ResolveNumPadOperationKey(keyEvent.Key) == ResolveNumPadOperationKey(Key); |
|
|
|
|
|
|
|
// TODO: Move that to external key parser
|
|
|
|
private static Key ParseKey(string key) |
|
|
|
|