Prevent editing value on focus when EditorSpinSlider is read-only

This commit is contained in:
detomon 2024-07-14 13:53:33 +02:00
parent b6223c0df0
commit 88f1b679f3

View File

@ -665,6 +665,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());