View Single Post
Old 11-30-2010, 01:35 PM   #52
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
enabling exit via fsk-menu

here is the promised code:
define
Code:
var newEvent;
newEvent = Core.system.compile("param", "return new Event(param)");
someplace and add this to target.ExitQuit
Code:
target.ExitQuit = function () {
	var ev, func, menuBar;
	ev = newEvent(2048);
	menuBar = this.findContent("MENUBAR"); // menuBar had to be defined as MENUBAR in XML!!
	// this.bubble("tracelog","findContent= "+menuBar);
	func = Core.system.getSoValue(menuBar,"endLoop");
	// this.bubble("tracelog","endLoop= "+func);
	func.call(menuBar,ev);	 
	kbook.autoRunRoot.exitIf(kbook.model); 
}
This will do the trick in the SIM, hop it's working on device too.
Mark Nord is offline   Reply With Quote