mirror of
https://github.com/ppy/osu.git
synced 2026-05-18 07:49:52 +08:00
Always select text when an editor slider-textbox is focused
This commit is contained in:
@@ -74,6 +74,7 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
textBox = new LabelledTextBox
|
||||
{
|
||||
Label = labelText,
|
||||
SelectAllOnFocus = true,
|
||||
},
|
||||
slider = new SettingsSlider<T>
|
||||
{
|
||||
@@ -92,8 +93,6 @@ namespace osu.Game.Graphics.UserInterfaceV2
|
||||
|
||||
public bool TakeFocus() => GetContainingFocusManager()?.ChangeFocus(textBox) == true;
|
||||
|
||||
public bool SelectAll() => textBox.SelectAll();
|
||||
|
||||
private bool updatingFromTextBox;
|
||||
|
||||
private void textChanged(ValueChangedEvent<string> change)
|
||||
|
||||
Reference in New Issue
Block a user