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

TextArea { Keys.onPressed } not bahaving as expected

XMLWordPrintable

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

      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.

        1. 2.qml
          0.4 kB
          Tech2Self
        For Gerrit Dashboard: QTBUG-33493
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved: