-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
TextBox
usages
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,16 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using osu.Framework.Input; | ||
|
||
namespace osu.Game.Graphics.UserInterface | ||
{ | ||
public partial class OsuNumberBox : OsuTextBox | ||
{ | ||
protected override bool AllowIme => false; | ||
|
||
public OsuNumberBox() | ||
{ | ||
InputProperties = new TextInputProperties(TextInputType.Number, false); | ||
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Linux, ubuntu-latest, MultiThreaded)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Linux, ubuntu-latest, MultiThreaded)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Linux, ubuntu-latest, MultiThreaded)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Linux, ubuntu-latest, SingleThread)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Linux, ubuntu-latest, SingleThread)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Linux, ubuntu-latest, SingleThread)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Code Quality
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Build only (iOS)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Build only (iOS)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Build only (iOS)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Windows, windows-latest, MultiThreaded)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Windows, windows-latest, MultiThreaded)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Windows, windows-latest, MultiThreaded)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Windows, windows-latest, SingleThread)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Windows, windows-latest, SingleThread)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Test (Windows, windows-latest, SingleThread)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Build only (Android)
Check failure on line 12 in osu.Game/Graphics/UserInterface/OsuNumberBox.cs GitHub Actions / Build only (Android)
|
||
SelectAllOnFocus = true; | ||
} | ||
|
||
protected override bool CanAddCharacter(char character) => char.IsAsciiDigit(character); | ||
} | ||
} |