Button::addShortcut works on Mac, but not on iOS. Please see the attached example. Focus the text editor, then press the Return key (on iOS using the on-screen keyboard). When you do it on the Mac, the
OK button gets clicked. On iOS, nothing happens.
The reason seems to be that it relies on
Button::CallbackHelper::keyStateChanged to be called.
NSViewComponentPeer does that, whereas
UIViewComponentPeer doesn’t. But I didn’t look into the internals for too long.
It would be great to get this fixed I’m on JUCE commit ccbcc41b.
ReturnKeyTest.zip (5.3 KB)