Browse Source

add support for , in key gesture.

pull/2978/head
Dan Walmsley 7 years ago
parent
commit
13f7813984
  1. 4
      src/Avalonia.Input/KeyGesture.cs

4
src/Avalonia.Input/KeyGesture.cs

@ -14,7 +14,7 @@ namespace Avalonia.Input
{
private static readonly Dictionary<string, Key> s_keySynonyms = new Dictionary<string, Key>
{
{ "+", Key.OemPlus }, { "-", Key.OemMinus }, { ".", Key.OemPeriod }
{ "+", Key.OemPlus }, { "-", Key.OemMinus }, { ".", Key.OemPeriod }, { ",", Key.OemComma }
};
[Obsolete("Use constructor taking KeyModifiers")]
@ -164,4 +164,4 @@ namespace Avalonia.Input
}
}
}
}
}

Loading…
Cancel
Save