input: don't submit value when leaving focus (even with Tab key)

This commit is contained in:
jean-emmanuel 2017-10-05 10:48:22 +02:00
parent d521f0d260
commit 39ae150a81
2 changed files with 2 additions and 1 deletions

View file

@ -84,7 +84,7 @@ module.exports = class Input extends _canvas_base {
.prependTo(this.widget)
.focus()
.on('blur', (e)=>{
this.blur()
this.blur(false)
})
.on('keydown', (e)=>{
if (e.keyCode==13) this.blur()