A game framework written with osu! in mind.
1// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
2// See the LICENCE file in the repository root for full licence text.
3
4using osu.Framework.Input;
5
6namespace osu.Framework.Graphics.UserInterface
7{
8 public class BasicPasswordTextBox : BasicTextBox, ISuppressKeyEventLogging
9 {
10 protected virtual char MaskCharacter => '*';
11
12 protected override bool AllowClipboardExport => false;
13
14 protected override bool AllowWordNavigation => false;
15
16 protected override Drawable AddCharacterToFlow(char c) => base.AddCharacterToFlow(MaskCharacter);
17 }
18}