View Single Post
Old 12-20-2011, 11:05 AM   #605
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
latest changes to the Sim-Engine

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?
Mark Nord is offline   Reply With Quote