summaryrefslogtreecommitdiff
path: root/scene/gui/menu_button.h
diff options
context:
space:
mode:
authorNoshyaar <poommetee@protonmail.com>2017-12-25 08:42:31 +0700
committerGitHub <noreply@github.com>2017-12-25 08:42:31 +0700
commit256a60bc6e05468ba64729f3d972086ab8ae95b5 (patch)
tree8b41047755ead177eec7f33f6227bb34e3d20837 /scene/gui/menu_button.h
parentaecffd71d89af9ab8c9b6dc737380b3c4e005330 (diff)
parent49859871d92c1540fa576dcd0e6d337840ab18e2 (diff)
Merge pull request #14826 from carlosfvieira/14371-F_key_Viewport_focus_problem
Fix spatial editor plugin issues on multi viewport view menu shortcuts (only those that are bound to keys)
Diffstat (limited to 'scene/gui/menu_button.h')
-rw-r--r--scene/gui/menu_button.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/gui/menu_button.h b/scene/gui/menu_button.h
index c7f1d976ff..08a8a43f55 100644
--- a/scene/gui/menu_button.h
+++ b/scene/gui/menu_button.h
@@ -40,6 +40,7 @@ class MenuButton : public Button {
GDCLASS(MenuButton, Button);
bool clicked;
+ bool disable_shortcuts;
PopupMenu *popup;
virtual void pressed();
@@ -54,6 +55,8 @@ protected:
public:
PopupMenu *get_popup();
+ void set_disable_shortcuts(bool p_disabled);
+
MenuButton();
~MenuButton();
};