iOS: close edit menu upon focus transfer
If you select text, the edit menu will show. But if you tap directly inside another input field, and as such, transfer focus, the menu will continue to stay visible. This patch will ensure that we hide the edit menu when the input field that it was requested for looses focus. Fixes: QTBUG-90937 Change-Id: I1d97bd57fc793826a3170404795b06a1e058d1b7 Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io> (cherry picked from commit 0bae5fbabbb64371b1b6c646ce0a32e084e42f83) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
This commit is contained in:
parent
249b310046
commit
405bf69ebe
@ -746,6 +746,9 @@ static void executeBlockWithoutAnimation(Block block)
|
||||
QObject::disconnect(_cursorConnection);
|
||||
QObject::disconnect(_anchorConnection);
|
||||
QObject::disconnect(_clipRectConnection);
|
||||
|
||||
if (QIOSTextInputOverlay::s_editMenu.shownByUs)
|
||||
QIOSTextInputOverlay::s_editMenu.visible = NO;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user