Doc: Document the replacement for InputContext.inputItem
InputContext.inputItem was marked deprecated without telling users what
to use instead. The property is simply the input method focus object:
QVirtualKeyboardInputContextPrivate::inputItem() returns
PlatformInputContext::focusObject(), which is fed from
QPlatformInputContext::setFocusObject(). For a Qt Quick application that
is exactly Window.activeFocusItem, since QQuickWindow::focusObject()
returns the active focus item. The shadow input control never takes
active focus (activeFocusOnPress is false), so this holds in
fullScreenMode as well.
Document Window.activeFocusItem as the QML replacement and
QGuiApplication::focusObject() as the C++ one. Also point to
Qt.inputMethod, since applications tracking the input item usually only
want the keyboard or cursor geometry, which QInputMethod exposes without
requiring access to the focused item.
The property was restored in 5.12.3 as a compatibility shim for code
written against 5.11, not as considered API, so it stays deprecated.
While at it, stop using the deprecated property inside the module.
ShadowInputControl used InputContext.inputItem for the selectByMouse
binding; use InputContext.priv.inputItem instead, consistently with
EnterKey.qml and with the rest of that file.
Task-number: QTBUG-131657
Change-Id: I2c8d3ae5ad43619352f5e090484caee0c1015a83
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>