diff options
author | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-12-26 11:41:38 +0100 |
---|---|---|
committer | Bernhard Liebl <Bernhard.Liebl@gmx.org> | 2017-12-26 11:41:38 +0100 |
commit | 77b4256718a2997d2a1f0e5f1900e5835581e886 (patch) | |
tree | b224a3d185209e269c924c4c1fefc8157b0e6978 | |
parent | 37aab45091961e7c063e9c77d6c4835b0c14806a (diff) |
Add keyboard shortcut for Clear Output
-rw-r--r-- | editor/editor_log.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index 407420d3d0..fe0bdd4754 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -29,6 +29,7 @@ /*************************************************************************/ #include "editor_log.h" +#include "core/os/keyboard.h" #include "editor_node.h" #include "scene/gui/center_container.h" #include "scene/resources/dynamic_font.h" @@ -154,6 +155,7 @@ EditorLog::EditorLog() { clearbutton = memnew(Button); hb->add_child(clearbutton); clearbutton->set_text(TTR("Clear")); + clearbutton->set_shortcut(ED_SHORTCUT("editor/clear_output", TTR("Clear Output"), KEY_MASK_CMD | KEY_MASK_SHIFT | KEY_K)); clearbutton->connect("pressed", this, "_clear_request"); log = memnew(RichTextLabel); |