mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-22 05:49:03 +01:00
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:
parent
9012fb3133
commit
11febb8780
@ -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';
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user