From 30f00bf0948aefa17954c05fa45491fab2d37b93 Mon Sep 17 00:00:00 2001 From: czaks Date: Fri, 31 Jan 2014 18:15:35 +0100 Subject: [PATCH] wpaint.js: actually fix that --- js/wpaint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/wpaint.js b/js/wpaint.js index fb54761b..0bd2c0cc 100644 --- a/js/wpaint.js +++ b/js/wpaint.js @@ -87,7 +87,7 @@ oekaki.init = function() { }); - $("#wpaintdiv input").on("keydown", function(e) { if (e.keycode == 13) e.preventDefault(); }); + $("#wpaintdiv input").on("keydown", function(e) { if (e.keycode == 13) { e.preventDefault(); e.stopPropagation(); } }); $('#wpaintctr .ui-resizable-se').css({'height':'12px', 'width':'12px'}); } });