Browse Source

Fix on screen keyboard is missing decimal separator on iOS (#20279)

pull/20295/head
YasarYY 2 months ago
committed by GitHub
parent
commit
895edfb24a
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 3
      src/iOS/Avalonia.iOS/TextInputResponder.Properties.cs

3
src/iOS/Avalonia.iOS/TextInputResponder.Properties.cs

@ -24,8 +24,9 @@ partial class AvaloniaView
_view._options.ContentType switch _view._options.ContentType switch
{ {
TextInputContentType.Alpha => UIKeyboardType.AsciiCapable, TextInputContentType.Alpha => UIKeyboardType.AsciiCapable,
TextInputContentType.Digits or TextInputContentType.Number => UIKeyboardType.NumberPad, TextInputContentType.Digits => UIKeyboardType.PhonePad,
TextInputContentType.Pin => UIKeyboardType.NumberPad, TextInputContentType.Pin => UIKeyboardType.NumberPad,
TextInputContentType.Number => UIKeyboardType.DecimalPad,
TextInputContentType.Email => UIKeyboardType.EmailAddress, TextInputContentType.Email => UIKeyboardType.EmailAddress,
TextInputContentType.Url => UIKeyboardType.Url, TextInputContentType.Url => UIKeyboardType.Url,
TextInputContentType.Name => UIKeyboardType.NamePhonePad, TextInputContentType.Name => UIKeyboardType.NamePhonePad,

Loading…
Cancel
Save