Inspired by kartu's
bubble-code for PRS+, I included similar functionality into the Sim-Engine. This way the simulated key-input now reaches the actual
focus. (e.g. dialiog windows)
But unexpectedly some apps stopped working in PRS-505 mode after this change.
The problems is cause by the last lines of
Code:
<function id="modelChanged">
...
this.state = state;
target.init();
if (target.isEnabled())
{
target.focus(true);
};
}
</function>
So that target.focus(true) wasn't called at all.
There are two solutions to this:
- remove the condition
- add this.enable(true); to target.init
BTW I can't figure out why some App's "become" enabled, while other need the explicit call?