diff options
author | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-06-14 18:44:06 +0400 |
---|---|---|
committer | passivestar <60579014+passivestar@users.noreply.github.com> | 2024-07-09 16:29:35 +0400 |
commit | 09f967bc00b5d8ed6e71e071aa891d39e56092e8 (patch) | |
tree | 99eb1b32e0f860da42985d3d5228a2e86053c14f /editor/gui/editor_spin_slider.cpp | |
parent | 71699e08c9df78b7203fa4ef9cede28e995d6ace (diff) | |
download | redot-engine-09f967bc00b5d8ed6e71e071aa891d39e56092e8.tar.gz |
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 a838299288..1d798f285b 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; |