summaryrefslogtreecommitdiff
path: root/scene/main/viewport.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'scene/main/viewport.cpp')
-rw-r--r--scene/main/viewport.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/scene/main/viewport.cpp b/scene/main/viewport.cpp
index 8df7bb4791..9f98eee39f 100644
--- a/scene/main/viewport.cpp
+++ b/scene/main/viewport.cpp
@@ -2058,7 +2058,15 @@ void Viewport::_gui_input_event(InputEvent p_event) {
case InputEvent::JOYSTICK_BUTTON:
case InputEvent::KEY: {
+
if (gui.key_focus && !gui.key_focus->is_visible()) {
+ Node *c=gui.key_focus;
+ String p;
+ while(c) {
+ p=c->get_type()+"/"+p;
+ c=c->get_parent();
+ }
+ print_line(p);
//key focus must always be visible
gui.key_focus->release_focus();
}