Remove get_focus_owner() from Control, replaced by get_viewport()->gui_get_focus_owner()
This commit is contained in:
parent
36880714e4
commit
73e784de1e
13 changed files with 12 additions and 26 deletions
|
|
@ -2128,7 +2128,7 @@ void FindBar::unhandled_input(const Ref<InputEvent> &p_event) {
|
|||
|
||||
Ref<InputEventKey> k = p_event;
|
||||
if (k.is_valid()) {
|
||||
if (k->is_pressed() && (rich_text_label->has_focus() || is_ancestor_of(get_focus_owner()))) {
|
||||
if (k->is_pressed() && (rich_text_label->has_focus() || is_ancestor_of(get_viewport()->gui_get_focus_owner()))) {
|
||||
bool accepted = true;
|
||||
|
||||
switch (k->get_keycode()) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue