Can ModalWindow hijack hardware button handling?
I figured that ModalWindow can hijack touch buttons easily, but how can I do this for hardware buttons?
Is the only way to only call custom functions? So that in Designer I always use Interaction to call virtual function1, and route it like this:
function1(){
if (modalwindow1.isvisible())
{
... modal window handling
} else {
...normal application button handling, change Screen etc.
}
}This way I cannot use any of the default Interactions (change Screen etc.) in Designer, because they would act the same regardless of modal window is shown. So I have to route every screen change via virtual function call.
Would be nice if the modal window could override the handleKeyEvent()
Thanks!
