From 448825acc17133fbd8497fb21c82f98bf704cb50 Mon Sep 17 00:00:00 2001 From: Relintai Date: Wed, 6 Sep 2023 22:37:21 +0200 Subject: [PATCH] Temporarily disabled EditorLog's new shortcuts. --- editor/editor_log.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/editor/editor_log.cpp b/editor/editor_log.cpp index cbd1ab4ff..466236a64 100644 --- a/editor/editor_log.cpp +++ b/editor/editor_log.cpp @@ -434,7 +434,7 @@ EditorLog::EditorLog() { search_box->set_h_size_flags(Control::SIZE_EXPAND_FILL); search_box->set_placeholder(TTR("Filter Messages")); search_box->set_clear_button_enabled(true); - search_box->set_visible(true); + //search_box->set_visible(true); search_box->connect("text_changed", this, "_search_changed"); search_box->hide(); vb_left->add_child(search_box); @@ -451,7 +451,8 @@ EditorLog::EditorLog() { clear_button = memnew(Button); clear_button->set_flat(true); clear_button->set_focus_mode(FOCUS_NONE); - clear_button->set_shortcut(ED_SHORTCUT("editor/clear_output", TTR("Clear Output"), KEY_MASK_CTRL | KEY_MASK_SHIFT | KEY_K)); + clear_button->set_tooltip(TTR("Clear Output")); + //clear_button->set_shortcut(ED_SHORTCUT("editor/clear_output", TTR("Clear Output"), KEY_MASK_CTRL | KEY_MASK_SHIFT | KEY_K)); //clear_button->set_shortcut_context(this); clear_button->connect("pressed", this, "_clear_request"); hb_tools->add_child(clear_button); @@ -460,7 +461,8 @@ EditorLog::EditorLog() { copy_button = memnew(Button); copy_button->set_flat(true); copy_button->set_focus_mode(FOCUS_NONE); - copy_button->set_shortcut(ED_SHORTCUT("editor/copy_output", TTR("Copy Selection"), KEY_MASK_CTRL | KEY_K)); + copy_button->set_tooltip(TTR("Copy Selection")); + //copy_button->set_shortcut(ED_SHORTCUT("editor/copy_output", TTR("Copy Selection"), KEY_MASK_CTRL | KEY_K)); //copy_button->set_shortcut_context(this); copy_button->connect("pressed", this, "_copy_request"); hb_tools->add_child(copy_button); @@ -486,7 +488,8 @@ EditorLog::EditorLog() { show_search_button->set_focus_mode(FOCUS_NONE); show_search_button->set_toggle_mode(true); show_search_button->set_pressed(false); - show_search_button->set_shortcut(ED_SHORTCUT("editor/open_search", TTR("Focus Search/Filter Bar"), KEY_MASK_CTRL | KEY_F)); + show_search_button->set_tooltip(TTR("Open Search/Filter Bar")); + //show_search_button->set_shortcut(ED_SHORTCUT("editor/open_search", TTR("Open Search/Filter Bar"), KEY_MASK_CTRL | KEY_F)); //show_search_button->set_shortcut_context(this); show_search_button->connect("toggled", this, "_set_search_visible"); hb_tools2->add_child(show_search_button);