summaryrefslogtreecommitdiff
path: root/scene/gui
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2016-07-16 15:22:30 +0200
committerGitHub <noreply@github.com>2016-07-16 15:22:30 +0200
commit6a5e11c075b6bc48d23267c03a66e613dee2bf55 (patch)
treed7121ec06bf944b91a86871525f0f1ae321933c4 /scene/gui
parente2ad08c56b41ce5e33e0ed3f702f6133eb58f618 (diff)
parent671c21dce7a92239b6c15eafd61faa5f65c7adfa (diff)
Merge pull request #5735 from neikeq/menu-accept-event-fix
MenuButton: Fix regression
Diffstat (limited to 'scene/gui')
-rw-r--r--scene/gui/menu_button.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/gui/menu_button.cpp b/scene/gui/menu_button.cpp
index 39a8ad0473..d6e084765d 100644
--- a/scene/gui/menu_button.cpp
+++ b/scene/gui/menu_button.cpp
@@ -39,7 +39,7 @@ void MenuButton::_unhandled_key_input(InputEvent p_event) {
return;
- if (popup->activate_item_by_accelerator(code))
+ if (popup->activate_item_by_event(p_event))
accept_event();
}
}