NIFI-1426:

- Ensuring we aren't preventing default when focused in a textarea.
This commit is contained in:
Matt Gilman 2016-02-01 08:28:18 -05:00
parent 1bf7a585b2
commit dbe8ff3f44
1 changed files with 1 additions and 2 deletions

View File

@ -106,13 +106,12 @@ $(document).ready(function () {
evt.preventDefault(); evt.preventDefault();
} }
} else { } else {
if (!$('input').is(':focus') && (evt.keyCode == 8 || evt.keyCode === 46)) { if (!$('input, textarea').is(':focus') && (evt.keyCode == 8 || evt.keyCode === 46)) {
// backspace or delete // backspace or delete
evt.preventDefault(); evt.preventDefault();
} }
} }
} }
}); });
}); });