In code below I have WebEngineView and keys are handled in two ways - in second case, from dynamically loaded component.
Key handler does not work, in dynamically loaded component, when I am using WebEngineView.

web.qml
Qt Code:
  1. import QtQuick 2.0
  2. import QtWebEngine 1.2
  3. Item{
  4. id: root
  5. height: 500
  6. width: 500
  7. WebEngineView {
  8. id: manualWebView
  9. height: 500
  10. width: 500
  11. enabled: true
  12. url: "https://www.google.com/"
  13. }
  14.  
  15. Keys.onReleased: {
  16. console.log("Loaded item captured INSIDE:",
  17. event.text);
  18. }
  19.  
  20. Loader {
  21. id: loader
  22. source: "debug.qml"
  23. focus: true
  24. onStatusChanged: {
  25. if (loader.status == Loader.Ready) console.log('Loaded')
  26. else
  27. console.log("Status changed: "+loader.status )
  28. }
  29. }
  30. }
To copy to clipboard, switch view to plain text mode 

debug.qml
Qt Code:
  1. import QtQuick 2.0
  2. Item {
  3. focus:true
  4. Keys.onReleased: {
  5. console.log("Loaded item captured OUTSIDE:",
  6. event.text);
  7. }
  8. }
To copy to clipboard, switch view to plain text mode 

and output is:
Qt Code:
  1. $ qmlscene web.qml
  2. qml: Loaded
  3. qml: Loaded item captured INSIDE: q
  4. qml: Loaded item captured INSIDE: t
To copy to clipboard, switch view to plain text mode 

Second handler(from loader) works properly when I remove WebEngineView.
Output after removing WebEngineView:
Qt Code:
  1. $ qmlscene web.qml
  2. qml: Loaded
  3. qml: Loaded item captured OUTSIDE: q
  4. qml: Loaded item captured INSIDE: q
  5. qml: Loaded item captured OUTSIDE: t
  6. qml: Loaded item captured INSIDE: t
To copy to clipboard, switch view to plain text mode 

Why key handling does not work in dynamically loaded component when I am using WebEngineView ?
How can I solve it ?