mirror of https://github.com/godotengine/godot
Prevent editing value on focus when `EditorSpinSlider` is read-only
(cherry picked from commit 88f1b679f3)
This commit is contained in:
parent
cbcc5f8d19
commit
2635ff777e
|
|
@ -664,6 +664,10 @@ bool EditorSpinSlider::is_grabbing() const {
|
|||
}
|
||||
|
||||
void EditorSpinSlider::_focus_entered() {
|
||||
if (is_read_only()) {
|
||||
return;
|
||||
}
|
||||
|
||||
_ensure_input_popup();
|
||||
value_input->set_text(get_text_value());
|
||||
value_input_popup->set_size(get_size());
|
||||
|
|
|
|||
Loading…
Reference in New Issue