summaryrefslogtreecommitdiff
path: root/editor/project_manager.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-10-11 22:31:46 +0200
committerGitHub <noreply@github.com>2017-10-11 22:31:46 +0200
commit8ed5e64656cc53c5388ff07d4c3bf082ccfaef53 (patch)
tree2a0f72fdca2cfd7c7fc799e84d4d736ac54d2c9f /editor/project_manager.cpp
parentbac5de0782a7a5fcc8bdd277495d1bb8311119bb (diff)
parent3df42cdefb2bd1abfc6c94ab8a613e98f1d1b2b3 (diff)
Merge pull request #11998 from DmitryKrutskikh/filter-input-events-in-project-manager-3-0
Skip unhandled input events on asset library tab. (3.0) [ci skip]
Diffstat (limited to 'editor/project_manager.cpp')
-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 9f23df5c03..d1210ee26a 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()) {