Thread: PRS-500 Highlighting
View Single Post
Old 08-15-2010, 02:48 PM   #3
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
And this code snipped taken form PRS 600 kbook.so let me hope that this can be done.
Code:
	this.Fskin.kbookKeyboard.keyboard.addLetter = function (obj, text, code) {
		var event, words, container, wlen, strExisted, candidate, idx;
		if (this.field) {
			event = new <global>.Event(2048);
			if (!code) {
				code = text.charCodeAt(0);
			}
			if (this.numberOnly) {
				words = this.field.getValue();
				if (words && words == '0') {
					if (code == 48) {
						return;
					}
					if (48 + 1 <= code && code <= 48 + 9) {
						event.key = '';
						event.keyCode = 8;
						this.field.keyDown(event);
					}
				}
			}
			event.key = text;
			event.keyCode = code;
			this.field.keyDown(event);
			container = this.container;
			if ('sandbox' in container && 'updatePageNo' in container.sandbox) {
				container.sandbox.updatePageNo();
			}
			words = this.field.getValue();
			if (this.numberOnly) {
				wlen = (words)?words.length:0;
				strExisted = (wlen > 0)?true:false;
				this.updateBtn(strExisted, this.strModified, false);
			}
			else {
				candidate = this.candidate;
				if (candidate) {
					idx = this.field.getSelectionOffset();
					candidate.makeCandidate(words, idx);
				}
			}
		}
	};

Last edited by Mark Nord; 08-15-2010 at 02:50 PM.
Mark Nord is offline   Reply With Quote