canvas-input: don't refocus after submit, always submit on enter

This commit is contained in:
jean-emmanuel 2016-11-17 21:09:40 +01:00
parent 6caa4d73c6
commit b9f87bb10e

View file

@ -66,7 +66,6 @@
.change(function(){
self.val($(this).val())
i.blur()
setTimeout(function(){self.focus()},1)
})
i.blur(function(){
self.attr('tabindex','0')
@ -77,7 +76,9 @@
if (e.originalEvent.target!=i[0]) {
i.blur()
}
})
}).on('keydown.popup', function(e){
if (e.keyCode==13) i.change()
})
})