mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
fix: ImGui-internal shortcuts not working correctly with native macOS menu bar enabled
(cherry picked from commit f0f6a22391)
This commit is contained in:
@@ -70,7 +70,11 @@ namespace hex::plugin::builtin {
|
||||
callback();
|
||||
}
|
||||
} else if (menuItems.size() == 1) {
|
||||
if (menu::menuItemEx(Lang(name), icon, shortcut, selectedCallback(), enabledCallback())) {
|
||||
bool enabled = enabledCallback();
|
||||
if (!shortcut.has(AllowWhileTyping) && ImGui::GetIO().WantTextInput)
|
||||
enabled = false;
|
||||
|
||||
if (menu::menuItemEx(Lang(name), icon, shortcut, selectedCallback(), enabled)) {
|
||||
if (shortcut == Shortcut::None)
|
||||
callback();
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user