diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-17 11:42:38 +0200 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2024-07-17 11:42:38 +0200 |
commit | ef3443ef35b4818f19a9d391a985373aaaee52b2 (patch) | |
tree | 2e96fd5808434aa757ea8ce8b2261c594a0bcfdb /editor/gui/editor_spin_slider.cpp | |
parent | 97b8ad1af0f2b4a216f6f1263bef4fbc69e56c7b (diff) | |
parent | 09f967bc00b5d8ed6e71e071aa891d39e56092e8 (diff) | |
download | redot-engine-ef3443ef35b4818f19a9d391a985373aaaee52b2.tar.gz |
Merge pull request #93165 from passivestar/scenetree-shortcut-focus
Prevent node rename shortcut from stealing focus from controls
Diffstat (limited to 'editor/gui/editor_spin_slider.cpp')
-rw-r--r-- | editor/gui/editor_spin_slider.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/editor/gui/editor_spin_slider.cpp b/editor/gui/editor_spin_slider.cpp index 6c85641d3a..4e8d6d63bf 100644 --- a/editor/gui/editor_spin_slider.cpp +++ b/editor/gui/editor_spin_slider.cpp @@ -36,6 +36,10 @@ #include "editor/editor_settings.h" #include "editor/themes/editor_scale.h" +bool EditorSpinSlider::is_text_field() const { + return true; +} + String EditorSpinSlider::get_tooltip(const Point2 &p_pos) const { if (!read_only && grabber->is_visible()) { Key key = (OS::get_singleton()->has_feature("macos") || OS::get_singleton()->has_feature("web_macos") || OS::get_singleton()->has_feature("web_ios")) ? Key::META : Key::CTRL; |