From: Janusz Dobrowolski Date: Mon, 30 May 2011 16:04:19 +0000 (+0200) Subject: Fixed Chrome issue with blocked cursor focus when enter is received on empty selectors. X-Git-Tag: 2.3-final~637 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=3ba71a479dd408dd3370742691bc1707c2373383;hp=8647f75daf1484b8a36f469ce0ebf7ae203eaa21;p=fa-stable.git Fixed Chrome issue with blocked cursor focus when enter is received on empty selectors. --- diff --git a/js/inserts.js b/js/inserts.js index 5110343e..c9736f69 100644 --- a/js/inserts.js +++ b/js/inserts.js @@ -156,9 +156,12 @@ function _set_combo_select(e) { box.value=''; setFocus(box); return false; + } else { + if (key == 13 && !e.length) // prevent chrome issue (blocked cursor after CR on empty selector) + return false; } } -} +} var _w;