Skip to content

Commit 88ed6af

Browse files
committed
Merge pull request godotengine#96609 from detomon/prevent-changing-readonly-property
Prevent editing value on focus when `EditorSpinSlider` is read-only
2 parents a466519 + 88f1b67 commit 88ed6af

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

editor/gui/editor_spin_slider.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -665,6 +665,10 @@ bool EditorSpinSlider::is_grabbing() const {
665665
}
666666

667667
void EditorSpinSlider::_focus_entered() {
668+
if (is_read_only()) {
669+
return;
670+
}
671+
668672
_ensure_input_popup();
669673
value_input->set_text(get_text_value());
670674
value_input_popup->set_size(get_size());

0 commit comments

Comments
 (0)