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

QML TextInput - Incorrect behavior when all text is selected and ctrl+backspace is pressed

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.14.1
    • GUI: Text handling
    • None

    Description

      If all text in a TextInput is selected and ctrl+backspace is pressed, the selection is cleared but no text is removed.

      Steps to reproduce (tested on Windows 10):

      1. Create a new project with the Qt Quick Application - Empty template
      2. Add a TextInput with anchors.fill: parent
      3. Run the project
      4. Type some text into the textbox
      5. Select all the text with ctrl+a
      6. Press ctrl+backspace

      Expected behavior:
      The selected text is removed.

      Actual behavior:
      The cursor jumps to the beginning of the TextInput and the text is deselected, but no text is removed.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            secondflight Joshua Wade
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes