diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-11-28 09:04:25 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-11-28 09:04:25 +0100 |
| commit | a09846e01542f199bbc7eb8b85003736a57f3e16 (patch) | |
| tree | dcb2a7c189a7f65095cb1fef9f59eee45b072360 /editor/project_manager.cpp | |
| parent | a6751e6c58e73d6b8d04e98bba5fb6e380fdf34f (diff) | |
| parent | 7941235e06c8acf1cb2888de3db8905c60c8ff00 (diff) | |
| download | redot-engine-a09846e01542f199bbc7eb8b85003736a57f3e16.tar.gz | |
Merge pull request #42109 from EricEzaM/PR/input-and-shortcuts-rework
Shortcuts rework - fixed issues with input propagation and triggering of unwanted shortcuts.
Diffstat (limited to 'editor/project_manager.cpp')
| -rw-r--r-- | editor/project_manager.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/editor/project_manager.cpp b/editor/project_manager.cpp index bbe6a73f8f..47b1135133 100644 --- a/editor/project_manager.cpp +++ b/editor/project_manager.cpp @@ -1854,7 +1854,7 @@ void ProjectManager::_notification(int p_what) { } } break; case NOTIFICATION_VISIBILITY_CHANGED: { - set_process_unhandled_input(is_visible_in_tree()); + set_process_unhandled_key_input(is_visible_in_tree()); } break; case NOTIFICATION_WM_CLOSE_REQUEST: { _dim_window(); @@ -1893,7 +1893,7 @@ void ProjectManager::_update_project_buttons() { erase_missing_btn->set_disabled(!_project_list->is_any_project_missing()); } -void ProjectManager::_unhandled_input(const Ref<InputEvent> &p_ev) { +void ProjectManager::_unhandled_key_input(const Ref<InputEvent> &p_ev) { Ref<InputEventKey> k = p_ev; if (k.is_valid()) { @@ -2357,7 +2357,7 @@ void ProjectManager::_on_search_term_changed(const String &p_term) { void ProjectManager::_bind_methods() { ClassDB::bind_method("_exit_dialog", &ProjectManager::_exit_dialog); - ClassDB::bind_method("_unhandled_input", &ProjectManager::_unhandled_input); + ClassDB::bind_method("_unhandled_key_input", &ProjectManager::_unhandled_key_input); ClassDB::bind_method("_update_project_buttons", &ProjectManager::_update_project_buttons); } |
