diff options
| author | Bojidar Marinov | 2016-04-06 15:37:57 +0300 |
|---|---|---|
| committer | Bojidar Marinov | 2016-04-06 15:42:50 +0300 |
| commit | b7d79c93f47c6d5e6d9e4f50c546cd521866703a (patch) | |
| tree | 8372b1c273237477661dc8fed3328c93ea9fdaeb /scene/gui/menu_button.cpp | |
| parent | 4af1839073261d913ef53bb6f81d2a0cb486d39b (diff) | |
| download | godot-b7d79c93f47c6d5e6d9e4f50c546cd521866703a.tar.gz godot-b7d79c93f47c6d5e6d9e4f50c546cd521866703a.tar.zst godot-b7d79c93f47c6d5e6d9e4f50c546cd521866703a.zip | |
Diffstat (limited to 'scene/gui/menu_button.cpp')
| -rw-r--r-- | scene/gui/menu_button.cpp | 18 |
1 files changed, 1 insertions, 17 deletions
diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp index cb8806e2e..0f415f013 100644 --- a/scene/gui/menu_button.cpp +++ b/scene/gui/menu_button.cpp @@ -53,23 +53,7 @@ void MenuButton::_unhandled_key_input(InputEvent p_event) { code|=KEY_MASK_SHIFT; - int item = popup->find_item_by_accelerator(code); - - - if (item>=0 && ! popup->is_item_disabled(item)) - popup->activate_item(item); - /* - for(int i=0;i<items.size();i++) { - - - if (items[i].accel==0) - continue; - - if (items[i].accel==code) { - - emit_signal("item_pressed",items[i].ID); - } - }*/ + int item = popup->activate_item_by_accelerator(code); } } |
