summaryrefslogtreecommitdiffstats
path: root/editor/gui
diff options
context:
space:
mode:
authorpassivestar <60579014+passivestar@users.noreply.github.com>2024-09-10 14:44:47 +0400
committerpassivestar <60579014+passivestar@users.noreply.github.com>2024-09-10 14:44:47 +0400
commit16f3d522530f2a6a8f0ec4d55d00053e6fa8119a (patch)
tree581cb9522cd0b7022d98945d8f878b17f16d9de2 /editor/gui
parent97ef3c837263099faf02d8ebafd6c77c94d2aaba (diff)
downloadredot-engine-16f3d522530f2a6a8f0ec4d55d00053e6fa8119a.tar.gz
Fix EditorSpinSlider blocking viewport from getting focus
Diffstat (limited to 'editor/gui')
-rw-r--r--editor/gui/editor_spin_slider.cpp4
-rw-r--r--editor/gui/editor_spin_slider.h2
2 files changed, 0 insertions, 6 deletions
diff --git a/editor/gui/editor_spin_slider.cpp b/editor/gui/editor_spin_slider.cpp
index a073a2338b..27b6bbafb7 100644
--- a/editor/gui/editor_spin_slider.cpp
+++ b/editor/gui/editor_spin_slider.cpp
@@ -37,10 +37,6 @@
#include "editor/themes/editor_scale.h"
#include "scene/theme/theme_db.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;
diff --git a/editor/gui/editor_spin_slider.h b/editor/gui/editor_spin_slider.h
index 2476c2f71b..dfc50878dd 100644
--- a/editor/gui/editor_spin_slider.h
+++ b/editor/gui/editor_spin_slider.h
@@ -101,8 +101,6 @@ protected:
void _focus_entered();
public:
- virtual bool is_text_field() const override;
-
String get_tooltip(const Point2 &p_pos) const override;
String get_text_value() const;