Blackberry Back Button in Phonegap no longer working when Sencha added
I've created a Sencha Touch App and I am using this with Phonegap to generate a Blackberry App.
I want to make use of the hardware back button, which is possible via BB Webworks and works, but only as long as I don't add Sencha Touch. It works fine when not using Sencha Touch, but the event seems not to be caught when Sencha Touch js-files are added.
Code:
<script type="text/javascript">
blackberry.system.event.onHardwareKey(blackberry.system.event.KEY_BACK,
function() {
alert("back");
//history.back();
return true;
});
</script>
Any clues why?
Thanks!