Bug 513130 - On-canvas text tool keyboard pans application window up depending on initial screen position
Summary: On-canvas text tool keyboard pans application window up depending on initial ...
Status: RESOLVED FIXED
Alias: None
Product: krita
Classification: Applications
Component: Tool/Text (other bugs)
Version First Reported In: git master (please specify the git hash!)
Platform: Android Android 14.x
: NOR normal
Target Milestone: ---
Assignee: Krita Bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-12-09 16:35 UTC by dra.w.p.il.e+bugskde
Modified: 2026-03-27 20:24 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed/Implemented In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dra.w.p.il.e+bugskde 2025-12-09 16:35:23 UTC
On Android, when you interact with the on-canvas text tool input and summon an on-screen keyboard on Android, the entire application window will pan up if the initial position of the input is near the bottom of the screen. This is wrong, if the user wants to see the input, they can pan the canvas to bring it into view, they don't need their entire window shifted. It also puts the selection handles in the wrong place because Qt doesn't offset the transform correctly on its own.

This probably requires patching Qt. QtNativeActivity.java has a variable m_softInputMode that decides on this behavior, but there's no interface for manipulating it.
Comment 1 Bug Janitor Service 2026-03-27 17:28:06 UTC
A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2725
Comment 2 Dmitry Kazakov 2026-03-27 20:20:12 UTC
Git commit e5a465deddaedd7654289a1b5f8ce549b3e46edf by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 27/03/2026 at 20:19.
Pushed by dkazakov into branch 'master'.

[android] Don't pan window up when using text tool

Because it's silly to do that when you can instead pan the canvas around
and not have the entire window get offset. If a patched Qt is available,
we pass the flag that tells the keyboard to please not do any panning or
other adjustment.

M  +9    -0    CMakeLists.txt
M  +1    -0    config-qt-patches-present.h.cmake
M  +16   -1    plugins/tools/svgtexttool/SvgTextCursor.cpp

https://invent.kde.org/graphics/krita/-/commit/e5a465deddaedd7654289a1b5f8ce549b3e46edf
Comment 3 Dmitry Kazakov 2026-03-27 20:23:39 UTC
Git commit 8d82995d9e6843f54c3b3a67180240679bed7118 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 27/03/2026 at 20:23.
Pushed by dkazakov into branch 'krita/6.0'.

[android] Don't pan window up when using text tool

Because it's silly to do that when you can instead pan the canvas around
and not have the entire window get offset. If a patched Qt is available,
we pass the flag that tells the keyboard to please not do any panning or
other adjustment.

M  +9    -0    CMakeLists.txt
M  +1    -0    config-qt-patches-present.h.cmake
M  +16   -1    plugins/tools/svgtexttool/SvgTextCursor.cpp

https://invent.kde.org/graphics/krita/-/commit/8d82995d9e6843f54c3b3a67180240679bed7118
Comment 4 Dmitry Kazakov 2026-03-27 20:24:29 UTC
Git commit a59c6bcc996ad827dfd12ca61f64b3f108a16a84 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 27/03/2026 at 20:24.
Pushed by dkazakov into branch 'release/6.0.0'.

[android] Don't pan window up when using text tool

Because it's silly to do that when you can instead pan the canvas around
and not have the entire window get offset. If a patched Qt is available,
we pass the flag that tells the keyboard to please not do any panning or
other adjustment.

M  +9    -0    CMakeLists.txt
M  +1    -0    config-qt-patches-present.h.cmake
M  +16   -1    plugins/tools/svgtexttool/SvgTextCursor.cpp

https://invent.kde.org/graphics/krita/-/commit/a59c6bcc996ad827dfd12ca61f64b3f108a16a84