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
parent
commit
4c065b8db3
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      src/Avalonia.Native/OsxUnicodeKeys.cs

5
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();
}
}

Loading…
Cancel
Save