do not prevent scrolling events inside of intput elements, this prevents users from entering spaces

This commit is contained in:
j 2011-02-11 20:13:13 +05:30
parent 2ad5d1d9e7
commit bb6ddcc3dd

View file

@ -533,7 +533,7 @@ requires
bufferTime = time;
}
focused && $elements[focused].triggerEvent('key_' + key);
if (['down', 'space', 'up'].indexOf(key) > -1) {
if (['down', 'space', 'up'].indexOf(key) > -1 && !$elements[focused].hasClass('OxInput')) {
// prevent chrome from scrolling
return false;
}