There is indeed a bug in the Direct Page Contril.xml:
<function id="doDigit" params="part"><![CDATA[
if (a <= 0) {
digits = '';
}
var keyCode = part.key.charCodeAt(0);
if (keyCode >= 0x30) {
a = keyCode - 0x30;
this.stackP();
}
]]></function>
This conditional code resets digits to empty string when it encounters a "0", I guess that its purpose is to remove leading "0"s, but it does have side effect.
if (a <= 0) {
digits = '';
}
|