1
1
mirror of https://github.com/ryujinx-mirror/ryujinx.git synced 2025-10-03 10:15:51 -05:00

Fix numeric SWKB validation (#5627)

* Fix numeric swkbd validation

* GTK
This commit is contained in:
Isaac Marovitz
2023-09-01 19:08:42 +01:00
committed by GitHub
parent 437c78e198
commit 12cbacffca
5 changed files with 26 additions and 9 deletions

View File

@@ -90,9 +90,9 @@ namespace Ryujinx.Ui.Applet
switch (mode)
{
case KeyboardMode.NumbersOnly:
_validationInfoText += "<i>Must be numbers only.</i>";
_checkInput = text => text.All(char.IsDigit);
case KeyboardMode.Numeric:
_validationInfoText += "<i>Must be 0-9 or '.' only.</i>";
_checkInput = text => text.All(NumericCharacterValidation.IsNumeric);
break;
case KeyboardMode.Alphabet:
_validationInfoText += "<i>Must be non CJK-characters only.</i>";