Files
osu-framework/osu.Framework/Graphics/UserInterface/BasicPasswordTextBox.cs
Dean Herbert 75ed421f60 Automated pass
2023-06-24 00:42:48 +09:00

21 lines
670 B
C#

// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
using osu.Framework.Input;
namespace osu.Framework.Graphics.UserInterface
{
public partial class BasicPasswordTextBox : BasicTextBox, ISuppressKeyEventLogging
{
protected virtual char MaskCharacter => '*';
protected override bool AllowClipboardExport => false;
protected override bool AllowWordNavigation => false;
protected override bool AllowIme => false;
protected override Drawable AddCharacterToFlow(char c) => base.AddCharacterToFlow(MaskCharacter);
}
}