| 182 | } |
| 183 | |
| 184 | void 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 | |
| 198 | void FindReplaceBar::_update_flags(bool p_direction_backwards) { |
| 199 | flags = 0; |
nothing calls this directly
no test coverage detected