mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
Make the "Clear Output" shortcut not require panel focus
This commit is contained in:
parent
da945ce626
commit
cae610b1d2
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user