diff options
author | Tinja Paavoseppä <tinja.paavoseppa@qt.io> | 2024-01-31 08:37:09 +0200 |
---|---|---|
committer | Tinja Paavoseppä <tinja.paavoseppa@qt.io> | 2024-02-15 19:44:35 +0200 |
commit | f4050cc5ea7490ba3b8b2bb0a174559d7e72a27e (patch) | |
tree | 3c17d32b18d5389ab1426b4d53839f530683a6a8 /src/plugins/platforms/android/qandroidplatformwindow.cpp | |
parent | 4449dbe73704e328c4645f1e9ae7455622b8968f (diff) |
Android: Move QtEditText to QtWindow
Every QtWindow has its own QtEditText. QtInputDelegate
uses QtEditText from the QtWindow which has the focus.
QtEditText is a View class which handles the creation
of the input connection, and encapsulates other various
keyboard input related functionalities. Previously
we have only had one, which requests focus when the
software keyboard is opened. However, with the
introduction of child windows, it does not make
sense for all the windows to operate through this
one instance.
Furthermore, since it always needs to have focus
to be able to open the software keyboard, this
leads to a bit surprising behavior in the focus
chain if we want to make each window focusable,
not just the top level one. Having each window
have its own QtEditText makes sure when a window
gets focus, the focus doesn't leave outside
of the matching view's own scope, making it easier
to handle.
This should also make it easier to clean up keyboard
input related events tied to a window when that window
is removed.
Task-number: QTBUG-118139
Pick-to: 6.7
Change-Id: Idd1a9407bc0c48660f2885d3bda28e46d42c08a0
Reviewed-by: Assam Boudjelthia <assam.boudjelthia@qt.io>
Diffstat (limited to 'src/plugins/platforms/android/qandroidplatformwindow.cpp')
0 files changed, 0 insertions, 0 deletions