Removal of InputEvent as built-in Variant type..

this might cause bugs I haven't found yet..
This commit is contained in:
Juan Linietsky 2017-05-20 12:38:03 -03:00
parent 93f9a83062
commit 5b3709d309
206 changed files with 9547 additions and 10167 deletions

View file

@ -77,17 +77,18 @@ void EditorQuickOpen::_text_changed(const String &p_newtext) {
_update_search();
}
void EditorQuickOpen::_sbox_input(const InputEvent &p_ie) {
void EditorQuickOpen::_sbox_input(const Ref<InputEvent> &p_ie) {
if (p_ie.type == InputEvent::KEY) {
Ref<InputEventKey> k = p_ie;
if (k.is_valid()) {
switch (p_ie.key.scancode) {
switch (k->get_scancode()) {
case KEY_UP:
case KEY_DOWN:
case KEY_PAGEUP:
case KEY_PAGEDOWN: {
search_options->call("_gui_input", p_ie);
search_options->call("_gui_input", k);
search_box->accept_event();
TreeItem *root = search_options->get_root();