summaryrefslogtreecommitdiff
path: root/src/ui/bindingswidget.c
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-02-05 22:49:06 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-02-05 22:49:06 +0200
commitb7deb632513795e495e9a3aa76a9400fef4de364 (patch)
treef57006f6fee9b79aea3182df5f0c3b28e9fc71eb /src/ui/bindingswidget.c
parent52f3c7e158ee9436ee82f602ee9a6212dd54b776 (diff)
Experimenting with an iOS build
iPlatformApple applies to both macOS and iOS. Added iPlatformAppleDesktop and iPlatformAppleMobile to make a distinction between the two. IssueID #96
Diffstat (limited to 'src/ui/bindingswidget.c')
-rw-r--r--src/ui/bindingswidget.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ui/bindingswidget.c b/src/ui/bindingswidget.c
index 9a2070ba..558bdcd5 100644
--- a/src/ui/bindingswidget.c
+++ b/src/ui/bindingswidget.c
@@ -26,7 +26,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
26#include "command.h" 26#include "command.h"
27#include "util.h" 27#include "util.h"
28#include "app.h" 28#include "app.h"
29#if defined (iPlatformApple) 29#if defined (iPlatformAppleDesktop)
30# include "macos.h" 30# include "macos.h"
31#endif 31#endif
32 32
@@ -140,7 +140,7 @@ static void setActiveItem_BindingsWidget_(iBindingsWidget *d, size_t pos) {
140 item->isWaitingForEvent = iTrue; 140 item->isWaitingForEvent = iTrue;
141 invalidateItem_ListWidget(d->list, d->activePos); 141 invalidateItem_ListWidget(d->list, d->activePos);
142 } 142 }
143#if defined (iPlatformApple) 143#if defined (iPlatformAppleDesktop)
144 /* Native menus must be disabled while grabbing keys so the shortcuts don't trigger. */ 144 /* Native menus must be disabled while grabbing keys so the shortcuts don't trigger. */
145 const iBool enableNativeMenus = (d->activePos == iInvalidPos); 145 const iBool enableNativeMenus = (d->activePos == iInvalidPos);
146 enableMenu_MacOS("Edit", enableNativeMenus); 146 enableMenu_MacOS("Edit", enableNativeMenus);