Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
None
-
6.3.1
Description
As noticable here, keyboard focus cannot be applied when hosting a QWindow into a foreign view/window, as the embedded use case is ignored.
A likely solution would be to simply extend the current implementation like this:
bool QCocoaWindow::setKeyboardGrabEnabled(bool grab) { qCDebug(lcQpaWindow) << "QCocoaWindow::setKeyboardGrabEnabled" << window() << grab; if (!isContentView() && !isEmbedded()) return false; if (grab && [m_view.window] &&![m_view.window isKeyWindow]) [m_view.window makeKeyWindow]; return true; }
Attachments
Issue Links
- resulted in
-
QTBUG-106597 macOS: QWindow::set(Keyboard/Mouse)GrabEnabled() doesn't grab
- Open