| 541 | } |
| 542 | |
| 543 | void CreateDialog::_sbox_input(const Ref<InputEvent> &p_event) { |
| 544 | // Redirect navigational key events to the tree. |
| 545 | Ref<InputEventKey> key = p_event; |
| 546 | if (key.is_valid()) { |
| 547 | if (key->is_action("ui_up", true) || key->is_action("ui_down", true) || key->is_action("ui_page_up") || key->is_action("ui_page_down")) { |
| 548 | search_options->gui_input(key); |
| 549 | search_box->accept_event(); |
| 550 | } else if (key->is_action_pressed("ui_select", true)) { |
| 551 | TreeItem *ti = search_options->get_selected(); |
| 552 | if (ti) { |
| 553 | ti->set_collapsed(!ti->is_collapsed()); |
| 554 | } |
| 555 | search_box->accept_event(); |
| 556 | } |
| 557 | } |
| 558 | } |
| 559 | |
| 560 | void CreateDialog::_notification(int p_what) { |
| 561 | switch (p_what) { |
nothing calls this directly
no test coverage detected