mttc
October 23, 2019, 8:09am
1
Hi, the command modifier flag is not working as expected on iOS, simply because it ends up in the else
which is meant for Windows:
/** Left mouse button flag. */
leftButtonModifier = 16,
/** Right mouse button flag. */
rightButtonModifier = 32,
/** Middle mouse button flag. */
middleButtonModifier = 64,
#if JUCE_MAC
/** Command key flag - on windows this is the same as the CTRL key flag. */
commandModifier = 8,
/** Popup menu flag - on windows this is the same as rightButtonModifier, on the
Mac it's the same as (rightButtonModifier | ctrlModifier). */
popupMenuClickModifier = rightButtonModifier | ctrlModifier,
#else
/** Command key flag - on windows this is the same as the CTRL key flag. */
commandModifier = ctrlModifier,
2 Likes
ed95
October 23, 2019, 11:03am
2
Thanks! I’ve added this in c74c939 .
1 Like
mttc
October 25, 2019, 1:24pm
3
Great, thank you!
While we’re at it, would it be possible to do the same also for the class KeyPress
? It’s about the key press description (there are 3 #if JUCE_MAC in the file).
Sorry I noticed only now
default: break;
}
if (desc.endsWith ("separator")) return KeyPress::numberPadSeparator;
if (desc.endsWith ("delete")) return KeyPress::numberPadDelete;
}
return 0;
}
#if JUCE_MAC
struct OSXSymbolReplacement
{
const char* text;
juce_wchar symbol;
};
const OSXSymbolReplacement osxSymbols[] =
{
{ "shift + ", 0x21e7 },
{ "command + ", 0x2318 },
ed95
October 25, 2019, 2:58pm
4
Yep, will get that added.