As mentionned in http://qt-project.org/doc/qt-5/qml-qtquick-keys.html,
If priority is Keys.BeforeItem (default) the order of key event processing is:
Items specified in forwardTo
specific key handlers, e.g. onReturnPressed
onPressed, onReleased handlers
Item specific key handling, e.g. TextInput key handling
There is a regression in QtQuick 2.0 with the following code:
If I press the 'u' key, then 'Return' key, here is the log:
We can see that after sending the keypress to the Item, it should be sent to the Text element, but it is sent to the Rectangle, then Text, then again Rectangle.
The same applies for the 'Return' key.
The same code works fine with "import QtQuick 1.0" and qmlviewer.