canvas-input: don't refocus after submit, always submit on enter
This commit is contained in:
parent
6caa4d73c6
commit
b9f87bb10e
1 changed files with 3 additions and 2 deletions
|
|
@ -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()
|
||||
})
|
||||
|
||||
})
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue