backspace and delete don't close synapse creation anymore
This commit is contained in:
parent
26bf7571c7
commit
677b045850
1 changed files with 2 additions and 5 deletions
|
@ -307,11 +307,8 @@ const Create = {
|
|||
|
||||
$('#synapse_desc').keyup(function(e) {
|
||||
const ESC = 27
|
||||
const BACKSPACE = 8
|
||||
const DELETE = 46
|
||||
if (e.keyCode === BACKSPACE && $(this).val() === '' ||
|
||||
e.keyCode === DELETE && $(this).val() === '' ||
|
||||
e.keyCode === ESC) {
|
||||
|
||||
if (e.keyCode === ESC) {
|
||||
Create.newSynapse.hide()
|
||||
} // if
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue