summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitryKrutskikh <dmitry.krutskikh@gmail.com>2017-10-10 18:23:11 +0300
committerDmitryKrutskikh <dmitry.krutskikh@gmail.com>2017-10-10 18:23:11 +0300
commit3df42cdefb2bd1abfc6c94ab8a613e98f1d1b2b3 (patch)
treedb8ed74d854355a3b4afa98a0156756f56e54a6d
parent0fb22b1d2403b6f380d953237b99d99e5c02b2e7 (diff)
Skip unhandled input events on asset library tab.
-rw-r--r--editor/project_manager.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp
index 1fb3fb2ed1..95448a3ff2 100644
--- a/editor/project_manager.cpp
+++ b/editor/project_manager.cpp
@@ -750,6 +750,9 @@ void ProjectManager::_unhandled_input(const Ref<InputEvent> &p_ev) {
if (!k->is_pressed())
return;
+ if (tabs->get_current_tab() != 0)
+ return;
+
bool scancode_handled = true;
switch (k->get_scancode()) {