You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-07 12:30:27 +00:00
Remove unused unhandled_key_input method in EditorHelp. Search popup and focus is handled by an external MenuButton shortcut.
This commit is contained in:
@@ -56,19 +56,6 @@ void EditorHelp::_init_colors() {
|
|||||||
class_desc->add_theme_constant_override("line_separation", Math::round(5 * EDSCALE));
|
class_desc->add_theme_constant_override("line_separation", Math::round(5 * EDSCALE));
|
||||||
}
|
}
|
||||||
|
|
||||||
void EditorHelp::_unhandled_key_input(const Ref<InputEvent> &p_ev) {
|
|
||||||
if (!is_visible_in_tree()) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ref<InputEventKey> k = p_ev;
|
|
||||||
|
|
||||||
if (k.is_valid() && k->get_control() && k->get_keycode() == KEY_F) {
|
|
||||||
search->grab_focus();
|
|
||||||
search->select_all();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void EditorHelp::_search(bool p_search_previous) {
|
void EditorHelp::_search(bool p_search_previous) {
|
||||||
if (p_search_previous) {
|
if (p_search_previous) {
|
||||||
find_bar->search_prev();
|
find_bar->search_prev();
|
||||||
@@ -1598,7 +1585,6 @@ void EditorHelp::set_scroll(int p_scroll) {
|
|||||||
void EditorHelp::_bind_methods() {
|
void EditorHelp::_bind_methods() {
|
||||||
ClassDB::bind_method("_class_list_select", &EditorHelp::_class_list_select);
|
ClassDB::bind_method("_class_list_select", &EditorHelp::_class_list_select);
|
||||||
ClassDB::bind_method("_request_help", &EditorHelp::_request_help);
|
ClassDB::bind_method("_request_help", &EditorHelp::_request_help);
|
||||||
ClassDB::bind_method("_unhandled_key_input", &EditorHelp::_unhandled_key_input);
|
|
||||||
ClassDB::bind_method("_search", &EditorHelp::_search);
|
ClassDB::bind_method("_search", &EditorHelp::_search);
|
||||||
ClassDB::bind_method("_help_callback", &EditorHelp::_help_callback);
|
ClassDB::bind_method("_help_callback", &EditorHelp::_help_callback);
|
||||||
|
|
||||||
|
|||||||
@@ -158,8 +158,6 @@ class EditorHelp : public VBoxContainer {
|
|||||||
void _request_help(const String &p_string);
|
void _request_help(const String &p_string);
|
||||||
void _search(bool p_search_previous = false);
|
void _search(bool p_search_previous = false);
|
||||||
|
|
||||||
void _unhandled_key_input(const Ref<InputEvent> &p_ev);
|
|
||||||
|
|
||||||
String _fix_constant(const String &p_constant) const;
|
String _fix_constant(const String &p_constant) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
|
|||||||
Reference in New Issue
Block a user