Fixed Chrome issue with blocked cursor focus when enter is received on empty selectors.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 30 May 2011 16:04:19 +0000 (18:04 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Mon, 30 May 2011 16:04:19 +0000 (18:04 +0200)
js/inserts.js

index 5110343e6b37b4ca8d7ce32ef4433f8eac3ba891..c9736f6955df192c1b2f281c074dabdfb2cabe4b 100644 (file)
@@ -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;