projects
/
textcart.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cbd7fe
)
Fixed Chrome issue with blocked cursor focus when enter is received on empty selectors.
author
Janusz Dobrowolski
<janusz@frontaccouting.eu>
Mon, 30 May 2011 16:04:19 +0000
(18:04 +0200)
committer
Janusz Dobrowolski
<janusz@frontaccouting.eu>
Mon, 30 May 2011 16:04:19 +0000
(18:04 +0200)
js/inserts.js
patch
|
blob
|
history
diff --git
a/js/inserts.js
b/js/inserts.js
index 5110343e6b37b4ca8d7ce32ef4433f8eac3ba891..c9736f6955df192c1b2f281c074dabdfb2cabe4b 100644
(file)
--- 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;