Add AllowIme => false where applicable

Also adds `AllowWordNavigation => false` to password text box.
This commit is contained in:
Susko3
2022-01-12 00:15:17 +01:00
parent c328b26de1
commit a0842838e7
4 changed files with 10 additions and 0 deletions

View File

@ -7,6 +7,8 @@ namespace osu.Game.Graphics.UserInterface
{ {
public class OsuNumberBox : OsuTextBox public class OsuNumberBox : OsuTextBox
{ {
protected override bool AllowIme => false;
protected override bool CanAddCharacter(char character) => character.IsAsciiDigit(); protected override bool CanAddCharacter(char character) => character.IsAsciiDigit();
} }
} }

View File

@ -29,6 +29,10 @@ namespace osu.Game.Graphics.UserInterface
protected override bool AllowClipboardExport => false; protected override bool AllowClipboardExport => false;
protected override bool AllowWordNavigation => false;
protected override bool AllowIme => false;
private readonly CapsWarning warning; private readonly CapsWarning warning;
[Resolved] [Resolved]

View File

@ -68,6 +68,8 @@ namespace osu.Game.Overlays.Settings
private class OutlinedNumberBox : OutlinedTextBox private class OutlinedNumberBox : OutlinedTextBox
{ {
protected override bool AllowIme => false;
protected override bool CanAddCharacter(char character) => character.IsAsciiDigit(); protected override bool CanAddCharacter(char character) => character.IsAsciiDigit();
public new void NotifyInputError() => base.NotifyInputError(); public new void NotifyInputError() => base.NotifyInputError();

View File

@ -13,6 +13,8 @@ namespace osu.Game.Screens.Edit.Setup
private class RomanisedTextBox : OsuTextBox private class RomanisedTextBox : OsuTextBox
{ {
protected override bool AllowIme => false;
protected override bool CanAddCharacter(char character) protected override bool CanAddCharacter(char character)
=> MetadataUtils.IsRomanised(character); => MetadataUtils.IsRomanised(character);
} }