mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-11 08:28:43 +01:00
- Fix bug that allowed tab key to trigger the search, which made tabbing through a list very annoying.
- Allow up / down arrow keys to trigger a blank search. Due to the above bug, many users were doing this anyway.
This commit is contained in:
parent
e7f82e886c
commit
9b1132c631
@ -233,13 +233,9 @@ function change(e, value) {
|
|||||||
var base_id = id.substr(0, id.lastIndexOf('['));
|
var base_id = id.substr(0, id.lastIndexOf('['));
|
||||||
if(document.getElementById(base_id + '[results]')) {
|
if(document.getElementById(base_id + '[results]')) {
|
||||||
set_id = base_id + '[results]';
|
set_id = base_id + '[results]';
|
||||||
if(document.getElementById(set_id).style.display == 'block') {
|
// Tab doesn't trigger the search
|
||||||
// Tab and arrow keys don't trigger the search
|
if(e.keyCode == 9 ) {
|
||||||
if(e.keyCode == 9
|
return;
|
||||||
|| e.keyCode == 38 || e.keyCode == 40
|
|
||||||
|| e.keyCode == 63232 || e.keyCode == 63233) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
set_id = base_id + '[search]';
|
set_id = base_id + '[search]';
|
||||||
|
Loading…
Reference in New Issue
Block a user