iOS: listen for standard text edit shortcuts
Catch the missing shortcuts sent by UIKit, and forward them to Qt as key events so that the app can respond to them. Change-Id: If63c4b05466e64843982fce32fbd594d2a0ef312 Reviewed-by: Richard Moe Gustavsen <richard.gustavsen@theqtcompany.com> Reviewed-by: Tor Arne Vestbø <tor.arne.vestbo@theqtcompany.com>bb10
parent
82538aebe4
commit
dbb24ce477
|
|
@ -360,6 +360,24 @@
|
|||
[self sendKeyPressRelease:Qt::Key_Delete modifiers:Qt::ControlModifier];
|
||||
}
|
||||
|
||||
- (void)toggleBoldface:(id)sender
|
||||
{
|
||||
Q_UNUSED(sender);
|
||||
[self sendKeyPressRelease:Qt::Key_B modifiers:Qt::ControlModifier];
|
||||
}
|
||||
|
||||
- (void)toggleItalics:(id)sender
|
||||
{
|
||||
Q_UNUSED(sender);
|
||||
[self sendKeyPressRelease:Qt::Key_I modifiers:Qt::ControlModifier];
|
||||
}
|
||||
|
||||
- (void)toggleUnderline:(id)sender
|
||||
{
|
||||
Q_UNUSED(sender);
|
||||
[self sendKeyPressRelease:Qt::Key_U modifiers:Qt::ControlModifier];
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
- (void)keyCommandTriggered:(UIKeyCommand *)keyCommand
|
||||
|
|
|
|||
Loading…
Reference in New Issue