mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-07-15 19:56:28 +02:00
Swkbd Applet Fixes (#5236)
* Swkbd Applet Fixes * Forgot a full stop * Update src/Ryujinx.Ava/UI/Applet/SwkbdAppletDialog.axaml.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> * Update src/Ryujinx/Ui/Applet/SwkbdAppletDialog.cs Co-authored-by: Ac_K <Acoustik666@gmail.com> --------- Co-authored-by: Ac_K <Acoustik666@gmail.com>
This commit is contained in:
parent
86de288142
commit
2bf4555591
5 changed files with 34 additions and 9 deletions
|
@ -0,0 +1,17 @@
|
|||
using System.Text.RegularExpressions;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Applets.SoftwareKeyboard
|
||||
{
|
||||
public static partial class CJKCharacterValidation
|
||||
{
|
||||
public static bool IsCJK(char value)
|
||||
{
|
||||
Regex regex = CJKRegex();
|
||||
|
||||
return regex.IsMatch(value.ToString());
|
||||
}
|
||||
|
||||
[GeneratedRegex("\\p{IsHangulJamo}|\\p{IsCJKRadicalsSupplement}|\\p{IsCJKSymbolsandPunctuation}|\\p{IsEnclosedCJKLettersandMonths}|\\p{IsCJKCompatibility}|\\p{IsCJKUnifiedIdeographsExtensionA}|\\p{IsCJKUnifiedIdeographs}|\\p{IsHangulSyllables}|\\p{IsCJKCompatibilityForms}")]
|
||||
private static partial Regex CJKRegex();
|
||||
}
|
||||
}
|
|
@ -6,22 +6,30 @@
|
|||
public enum KeyboardMode : uint
|
||||
{
|
||||
/// <summary>
|
||||
/// A full alpha-numeric keyboard.
|
||||
/// All UTF-16 characters allowed.
|
||||
/// </summary>
|
||||
Default = 0,
|
||||
|
||||
/// <summary>
|
||||
/// Number pad.
|
||||
/// Only numbers allowed.
|
||||
/// </summary>
|
||||
NumbersOnly = 1,
|
||||
|
||||
/// <summary>
|
||||
/// ASCII characters keyboard.
|
||||
/// Only ASCII characters allowed.
|
||||
/// </summary>
|
||||
ASCII = 2,
|
||||
|
||||
FullLatin = 3,
|
||||
Alphabet = 4,
|
||||
/// <summary>
|
||||
/// Synonymous with default.
|
||||
/// </summary>
|
||||
FullLatin = 3,
|
||||
|
||||
/// <summary>
|
||||
/// All UTF-16 characters except CJK characters allowed.
|
||||
/// </summary>
|
||||
Alphabet = 4,
|
||||
|
||||
SimplifiedChinese = 5,
|
||||
TraditionalChinese = 6,
|
||||
Korean = 7,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue