canvas-input: cancel with esc key
This commit is contained in:
parent
b9f87bb10e
commit
23b6ced070
1 changed files with 2 additions and 1 deletions
|
|
@ -76,8 +76,9 @@
|
|||
if (e.originalEvent.target!=i[0]) {
|
||||
i.blur()
|
||||
}
|
||||
}).on('keydown.popup', function(e){
|
||||
}).on('keydown.fakeInput', function(e){
|
||||
if (e.keyCode==13) i.change()
|
||||
if (e.keyCode==27) i.off('change').blur()
|
||||
})
|
||||
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue