onKeyDown() for KEYCODE_BACK supressed

BogDan bog_dan_ro at yahoo.com
Wed Jan 9 16:50:59 UTC 2013


Hi,

Check this thread https://groups.google.com/group/android-qt/browse_thread/thread/a5beee9f561ef763/a3fa2791fbf88c37

Cheers,
BogDan.



>
>Hello,
> 
>Looking through the code for QtActivityDelegate.java I find the following rows in the onKeyDown()-method:
>if (keyCode != KeyEvent.KEYCODE_BACK)
>QtNative.keyDown(keyCode, c, event.getMetaState());
> 
>Source: https://qt.gitorious.org/~taipan/qt/android-lighthouse/blobs/beta2/src/android/jar/src/org/kde/necessitas/industrius/QtActivityDelegate.java#line472
> 
> 
>So basically the onKeyDown event for the back button is suppressed from the application. What is the reason for this?
>The onKeyUp event is not filtered, only onKeyDown.
> 
>I am working on an implementation to ease up the back button handling, especially for QML-applications and this filters the event I am interested in.
> 
>Regards
>Micke
>_______________________________________________
>Necessitas-devel mailing list
>Necessitas-devel at kde.org
>https://mail.kde.org/mailman/listinfo/necessitas-devel
>
>
>


More information about the Necessitas-devel mailing list