1
1
mirror of https://github.com/aelve/guide.git synced 2024-11-23 21:13:07 +03:00

Fix events in Firefox

This commit is contained in:
Artyom 2016-04-19 23:09:39 +03:00
parent 41230596bf
commit 5efa203e21

View File

@ -311,7 +311,7 @@ makeTraitEditor =
"id" : textareaUid, "id" : textareaUid,
"class" : "fullwidth", "class" : "fullwidth",
"text" : content })[0]; "text" : content })[0];
area.onkeydown = function () { area.onkeydown = function (event) {
if (event.keyCode == 13) { if (event.keyCode == 13) {
submitTrait(traitNode, itemId, traitId, area.value); submitTrait(traitNode, itemId, traitId, area.value);
return false; } }; return false; } };