Browse Source
Merge pull request #4340 from AvaloniaUI/convert-osx-number-key-gestures
convert D0 to D9 to 0 to 9 string.
pull/4344/head
danwalmsley
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
5 additions and
0 deletions
-
src/Avalonia.Native/OsxUnicodeKeys.cs
|
|
|
@ -140,6 +140,11 @@ namespace Avalonia.Native.Interop |
|
|
|
} |
|
|
|
else |
|
|
|
{ |
|
|
|
if (key >= Key.D0 && key <= Key.D9) |
|
|
|
{ |
|
|
|
return key.ToString().Replace("D", ""); |
|
|
|
} |
|
|
|
|
|
|
|
return key.ToString().ToLower(); |
|
|
|
} |
|
|
|
} |
|
|
|
|