Permalink
Browse files

[IPLUG] IGraphicsCarbon key up/down fixed

  • Loading branch information...
1 parent 77a8bc5 commit 4b394e551692ff00a00ad909f3c32b5a707bea63 @olilarkin committed Nov 18, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 WDL/IPlug/IGraphicsCarbon.cpp
View
4 WDL/IPlug/IGraphicsCarbon.cpp
@@ -51,8 +51,8 @@ pascal OSStatus IGraphicsCarbon::CarbonEventHandler(EventHandlerCallRef pHandler
GetEventParameter(pEvent, kEventParamKeyMacCharCodes, typeChar, NULL, sizeof(char), NULL, &c);
if (k == 49) key = KEY_SPACE;
- else if (k == 125) key = KEY_UPARROW;
- else if (k == 126) key = KEY_DOWNARROW;
+ else if (k == 125) key = KEY_DOWNARROW;
+ else if (k == 126) key = KEY_UPARROW;
else if (k == 123) key = KEY_LEFTARROW;
else if (k == 124) key = KEY_RIGHTARROW;
else if (c >= '0' && c <= '9') key = KEY_DIGIT_0+c-'0';

0 comments on commit 4b394e5

Please sign in to comment.