<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.kde.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugs.kde.org/"
          
          maintainer="sysadmin@kde.org"
>

    <bug>
          <bug_id>513130</bug_id>
          
          <creation_ts>2025-12-09 16:35:23 +0000</creation_ts>
          <short_desc>On-canvas text tool keyboard pans application window up depending on initial screen position</short_desc>
          <delta_ts>2026-03-27 20:24:29 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>2</classification_id>
          <classification>Applications</classification>
          <product>krita</product>
          <component>Tool/Text</component>
          <version>git master (please specify the git hash!)</version>
          <rep_platform>Android</rep_platform>
          <op_sys>Android 14.x</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>NOR</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>dra.w.p.il.e+bugskde</reporter>
          <assigned_to name="Krita Bugs">krita-bugs-null</assigned_to>
          
          
          <cf_commitlink>https://invent.kde.org/graphics/krita/-/commit/a59c6bcc996ad827dfd12ca61f64b3f108a16a84</cf_commitlink>
          <cf_versionfixedin></cf_versionfixedin>
          <cf_sentryurl></cf_sentryurl>
          <votes>0</votes>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>2475528</commentid>
    <comment_count>0</comment_count>
    <who name="">dra.w.p.il.e+bugskde</who>
    <bug_when>2025-12-09 16:35:23 +0000</bug_when>
    <thetext>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&apos;t need their entire window shifted. It also puts the selection handles in the wrong place because Qt doesn&apos;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&apos;s no interface for manipulating it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2506574</commentid>
    <comment_count>1</comment_count>
    <who name="Bug Janitor Service">bug-janitor</who>
    <bug_when>2026-03-27 17:28:06 +0000</bug_when>
    <thetext>A possibly relevant merge request was started @ https://invent.kde.org/graphics/krita/-/merge_requests/2725</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2506597</commentid>
    <comment_count>2</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2026-03-27 20:20:12 +0000</bug_when>
    <thetext>Git commit e5a465deddaedd7654289a1b5f8ce549b3e46edf by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 27/03/2026 at 20:19.
Pushed by dkazakov into branch &apos;master&apos;.

[android] Don&apos;t pan window up when using text tool

Because it&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2506598</commentid>
    <comment_count>3</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2026-03-27 20:23:39 +0000</bug_when>
    <thetext>Git commit 8d82995d9e6843f54c3b3a67180240679bed7118 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 27/03/2026 at 20:23.
Pushed by dkazakov into branch &apos;krita/6.0&apos;.

[android] Don&apos;t pan window up when using text tool

Because it&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2506599</commentid>
    <comment_count>4</comment_count>
    <who name="Dmitry Kazakov">dimula73</who>
    <bug_when>2026-03-27 20:24:29 +0000</bug_when>
    <thetext>Git commit a59c6bcc996ad827dfd12ca61f64b3f108a16a84 by Dmitry Kazakov, on behalf of Carsten Hartenfels.
Committed on 27/03/2026 at 20:24.
Pushed by dkazakov into branch &apos;release/6.0.0&apos;.

[android] Don&apos;t pan window up when using text tool

Because it&apos;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</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>