solution for the tabbing problem (you could not access the subject field by tabbing comming from above) suggested by stefan becker

This commit is contained in:
Klaus Leithoff 2010-01-26 08:35:45 +00:00
parent 9012fb3133
commit 11febb8780

View File

@ -351,7 +351,12 @@ function keypressed(keycode, keyvalue) {
selectSuggestion(0);
}
} else {
focusToNextInputField();
rv = focusToNextInputField();
if (rv == 'fm_compose_subject')
{
currentKeyCode = 13;
//alert(currentKeyCode);
}
}
break;
@ -401,6 +406,7 @@ function selectSuggestion(_selectedSuggestion) {
}
function keycodePressed(_keyCode) {
//alert(currentKeyCode +'=='+ _keyCode);
if(currentKeyCode == _keyCode) {
return false;
} else {
@ -437,9 +443,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';
}
}