diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-08-31 11:11:52 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2022-09-01 08:13:56 +0300 |
commit | b85a4c5d7919e8a9a7d8dd254b7b05883422da86 (patch) | |
tree | 833d691b11aa7f7b7bc192c38438adfe8e59d016 /platform/macos/godot_menu_item.h | |
parent | 1c037c89d4345789c17dfa19bf1e8bd67f702f09 (diff) |
[macOS] Handle accelerator and click events of the global menu items separately.
Diffstat (limited to 'platform/macos/godot_menu_item.h')
-rw-r--r-- | platform/macos/godot_menu_item.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/platform/macos/godot_menu_item.h b/platform/macos/godot_menu_item.h index e0b9f41632..e96f5dc1cf 100644 --- a/platform/macos/godot_menu_item.h +++ b/platform/macos/godot_menu_item.h @@ -45,6 +45,7 @@ enum GlobalMenuCheckType { @interface GodotMenuItem : NSObject { @public Callable callback; + Callable key_callback; Variant meta; GlobalMenuCheckType checkable_type; int max_states; @@ -54,7 +55,4 @@ enum GlobalMenuCheckType { @end -@implementation GodotMenuItem -@end - #endif // GODOT_MENU_ITEM_H |