Skip to content

Commit

Permalink
Merge pull request #89505 from passivestar/clear-output
Browse files Browse the repository at this point in the history
Make the "Clear Output" shortcut not require panel focus
  • Loading branch information
akien-mga committed Mar 24, 2024
2 parents 48cf825 + cae610b commit a958957
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions editor/editor_log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit a958957

Please sign in to comment.