Mark, I found another improvement into eBookSimMain.xml. Put following fragment into 'main' code segment and you can use keyboard instead of mouse (now only for digits but it is easy to implement the rest). I implemented it because I need button
hold functionality (now alt+digit)
Code:
<function id="internalNumKey" params="num">
var part=new Object;
part.key=num;
this.EINK.VIEW.DOCUMENT.AUTORUN_GROUP.AUTORUN.bubble("doDigit", part);
</function>
<function id="internalNumKeyHold" params="num">
this.EINK.VIEW.DOCUMENT.AUTORUN_GROUP.AUTORUN.bubble("doHold"+ num);
</function>
<function id="keyDown" params="ev">
<![CDATA[
//this.bubble('tracelog', 'keyDown:'+ev);
//this.bubble('tracelog', 'keyDown.key:'+ev.key);
//this.bubble('tracelog', 'keyDown.keyCode:'+ev.keyCode);
//this.bubble('tracelog', 'keyDown.altKey:'+ev.altKey);
//this.bubble('tracelog', 'keyDown.shiftKey:'+ev.shiftKey);
//this.bubble('tracelog', 'keyDown.controlKey:'+ev.controlKey);
//this.bubble('tracelog', 'keyDown.functionKey:'+ev.functionKey);
//this.bubble('tracelog', 'keyDown.x:'+ev.x);
//this.bubble('tracelog', 'keyDown.y:'+ev.y);
//this.bubble('tracelog', 'keyDown.time:'+ev.time);
//this.bubble('tracelog', 'keyDown.clickCount:'+ev.clickCount);
//this.bubble('tracelog', 'keyDown.contextual:'+ev.contextual);
//this.bubble('tracelog', 'keyDown-');
if ((ev.key >='0') && (ev.key<='9')){
if(ev.altKey){
this.internalNumKeyHold(ev.key);
}else{
this.internalNumKey(ev.key);
}
}
]]>
</function>
internalNumKey is used as well insice 'digit-button' click code