rem: if (i <= 0) {   } else i = i - 1; } else if (key == 'K' || key == 'W') { if (i >= l) { if (ajaxCommentsWait()) return; update = 2; ajaxFetchComments(0, 1, '', 1); } else { update = 1; if (!i && !last_updated_comments_started && commentIsInWindow(last_updated_comments[i])) i = i + 1; else last_updated_comments_started = 1; } 
add: if (!i && !last_updated_comments_started && !commentIsInWindow(last_updated_comments[i])) last_updated_comments_started = 1; else i = i + 1; 
context: function keyHandler(e) {	e = e || window.event;	if (e) {		// don't handle for forms ... "type" should handle all our cases here		if (e.target && e.target.type)			return;		var c = e.keyCode;		if (c) {			var key = String.fromCharCode(c);			if (key == 'J' || key == 'K' || key == 'W' || key == 'S') {				if (last_updated_comments.length) {					var i = last_updated_comments_index;					var l = last_updated_comments.length - 1;					var update = 0;					if (key == 'J' || key == 'S') {						update = 1;						if (i <= 0) {							// this did go back to end; nothing, for now							//i = l;						} else							i = i - 1;					} else if (key == 'K' || key == 'W') {						if (i >= l) {							if (ajaxCommentsWait())								return;							update = 2;							ajaxFetchComments(0, 1, '', 1);						} else {							update = 1;							if (!i && !last_updated_comments_started && commentIsInWindow(last_updated_comments[i]))								i = i + 1;							else								last_updated_comments_started = 1; // only come here once						}					}					if (update) {						doModifiers(e);						var this_shift_down = shift_down;						resetModifiers();						if (this_shift_down && current_cid) { // if shift, collapse previously selected							setFocusComment('-' + current_cid, 1);						}						if (update == 1) {							last_updated_comments_index = i;							setFocusComment(last_updated_comments[i], 1);						}					}				}			}		}	}}
meta: 200	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/200/c21dc0b2d9e5b5df091694643091059cda029f4e/comments.js/clean/themes/slashcode/htdocs/images/comments.js