fix for tabbing problem (backport from trunk)

This commit is contained in:
Klaus Leithoff 2010-04-29 08:54:33 +00:00
parent 35f6385a6b
commit 4995202b8f

View File

@ -349,7 +349,12 @@ function keypressed(keycode, keyvalue) {
selectSuggestion(0);
}
} else {
focusToNextInputField();
rv = focusToNextInputField();
if (rv == 'fm_compose_subject')
{
currentKeyCode = 13;
//alert(currentKeyCode);
}
}
break;
@ -399,6 +404,7 @@ function selectSuggestion(_selectedSuggestion) {
}
function keycodePressed(_keyCode) {
//alert(currentKeyCode +'=='+ _keyCode);
if(currentKeyCode == _keyCode) {
return false;
} else {
@ -435,9 +441,11 @@ function focusToNextInputField() {
inputElements = nextRow.getElementsByTagName('input');
inputElements[0].focus();
}
return 'addressinput';
} else {
document.getElementById('fm_compose_subject').focus();
//document.doit.fm_compose_subject.focus();
return 'fm_compose_subject';
}
}