Fix crash for keypress without active focus.
Fix crash for keypress without active focus.

If there was no active focus item
we need to use tryShortcutEvent with
 the window as target.

Change-Id: I420925781bbbda79fe2a62a5774230ae77c2cd34
Reviewed-by: Liang Qi <0f3d3d9587f4f01263b2640b7eef7a92a160ec94@digia.com>

corngood/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,jfaust/qtdeclarative,matthewvogt/qtdeclarative,matthewvogt/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,mgrunditz/qtdeclarative-2d,matthewvogt/qtdeclarative,corngood/qtdeclarative,corngood/qtdeclarative,matthewvogt/qtdeclarative,qmlc/qtdeclarative,corngood/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,jfaust/qtdeclarative,qmlc/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,corngood/qtdeclarative,qmlc/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,qmlc/qtdeclarative,qmlc/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d,jfaust/qtdeclarative,matthewvogt/qtdeclarative,mgrunditz/qtdeclarative-2d,mgrunditz/qtdeclarative-2d