MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / input

Method input

editor/gui/code_editor.cpp:184–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

182}
183
184void FindReplaceBar::input(const Ref<InputEvent> &p_event) {
185 ERR_FAIL_COND(p_event.is_null());
186
187 Ref<InputEventKey> k = p_event;
188 if (k.is_valid() && k->is_action_pressed(SNAME("ui_cancel"), false, true)) {
189 Control *focus_owner = get_viewport()->gui_get_focus_owner();
190
191 if (text_editor->has_focus() || (focus_owner && is_ancestor_of(focus_owner))) {
192 _hide_bar();
193 accept_event();
194 }
195 }
196}
197
198void FindReplaceBar::_update_flags(bool p_direction_backwards) {
199 flags = 0;

Callers

nothing calls this directly

Calls 15

gui_get_focus_ownerMethod · 0.80
is_ancestor_ofMethod · 0.80
move_lines_upMethod · 0.80
move_lines_downMethod · 0.80
delete_linesMethod · 0.80
duplicate_selectionMethod · 0.80
duplicate_linesMethod · 0.80
is_nullMethod · 0.45
is_validMethod · 0.45
is_action_pressedMethod · 0.45
has_focusMethod · 0.45
is_pressedMethod · 0.45

Tested by

no test coverage detected