From cae610b1d25d7f93252bc5a5811c8f2878dd65a0 Mon Sep 17 00:00:00 2001 From: passivestar <60579014+passivestar@users.noreply.github.com> Date: Fri, 15 Mar 2024 11:40:21 +0400 Subject: [PATCH] Make the "Clear Output" shortcut not require panel focus --- editor/editor_log.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index c0c26bbfeb3..667405ff10f 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -435,8 +435,7 @@ EditorLog::EditorLog() { clear_button = memnew(Button); clear_button->set_theme_type_variation("FlatButton"); clear_button->set_focus_mode(FOCUS_NONE); - clear_button->set_shortcut(ED_SHORTCUT("editor/clear_output", TTR("Clear Output"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::SHIFT | Key::K)); - clear_button->set_shortcut_context(this); + clear_button->set_shortcut(ED_SHORTCUT("editor/clear_output", TTR("Clear Output"), KeyModifierMask::CMD_OR_CTRL | KeyModifierMask::ALT | Key::K)); clear_button->connect("pressed", callable_mp(this, &EditorLog::_clear_request)); hb_tools->add_child(clear_button);