summaryrefslogtreecommitdiffstats
path: root/editor/gui/editor_spin_slider.cpp
diff options
context:
space:
mode:
authorpassivestar <60579014+passivestar@users.noreply.github.com>2024-06-14 18:44:06 +0400
committerpassivestar <60579014+passivestar@users.noreply.github.com>2024-07-09 16:29:35 +0400
commit09f967bc00b5d8ed6e71e071aa891d39e56092e8 (patch)
tree99eb1b32e0f860da42985d3d5228a2e86053c14f /editor/gui/editor_spin_slider.cpp
parent71699e08c9df78b7203fa4ef9cede28e995d6ace (diff)
downloadredot-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.cpp4
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;