Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-119229

Missing text selection behavior with Virtual Keyboard plugin on touch screens

    XMLWordPrintable

Details

    • Linux/Yocto, Windows

    Description

      In applications using the Virtual Keyboard plugin, text cannot be selected in a TextField or TextInput component with a touch screen on both Windows 11 and my Boot2Qt device. My application runs directly on EGLFS and the VKB is used within it. The only way to get the selection handles to appear is if the text is selected programmatically, using shift-arrows, or with a mouse.

      In another thread (QTBUG-116606), srutledg confirmed this behavior with the example at qtvirtualkeyboard/examples/virtualkeyboard/basic. The steps to reproduce are as follows:

      1. Create a TextInput, TextField, or TextArea component and insert some text.
      2. On a touch screen, double tap or press and hold a word in the component. No text will be selected nor will selection handles appear.

      Assuming this functionality is actually missing and something isn't broken, I think the intended behavior should follow 3 things based on my observations from other platforms (namely, iOS):

      1. Un-editable text is selected by long press.
      2. Editable text is selected by double tapping.
      3. Cursors on editable text can be moved by long press and then dragging.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              jakoivik Jarkko Koivikko
              jmbaffo Jonathan Baffo
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes