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

TextArea { Keys.onPressed } not bahaving as expected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.0
    • 5.1.1
    • Quick: Controls 1
    • None
    • Ubuntu 13.04
    • 5dc805c86077ee9cd10af530f802fdda879cfb6a

    Description

      Hi,

      Am trying to verify the TextArea control in QtQuick Controls 1.0
      released in QtQuick 2.1.

      Here I wanted to receive all Keyboard (Key press & release) events in my TextArea.

      FYI, I have attached the QML file, please find the same.

      Actual:
      Here it should receive all keyboard events and
      log the same, but in this case it receives only Left arrow and right arrow
      keys only when the cursor is at the beginning and at the end of text document respectively.

      Rest all cases, no key events, (Aplha, Numeric etc) were ever received.

      TextArea {
      Keys.onPressed:

      { console.log(event.text) }

      Keys.onReleased:

      { console.log(event.text) }

      }

      Expected:
      TextArea should receive all key events all the time.

      Attachments

        Issue Links

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

          Activity

            People

              liaqi Liang Qi
              tech2self Tech2Self
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: