Repository: nifi Updated Branches: refs/heads/master 1bf7a585b -> dbe8ff3f4
NIFI-1426: - Ensuring we aren't preventing default when focused in a textarea. Project: http://git-wip-us.apache.org/repos/asf/nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/nifi/commit/dbe8ff3f Tree: http://git-wip-us.apache.org/repos/asf/nifi/tree/dbe8ff3f Diff: http://git-wip-us.apache.org/repos/asf/nifi/diff/dbe8ff3f Branch: refs/heads/master Commit: dbe8ff3f44acf1340d664e85991bdcc67bc1ac40 Parents: 1bf7a58 Author: Matt Gilman <[email protected]> Authored: Mon Feb 1 08:28:18 2016 -0500 Committer: Matt Gilman <[email protected]> Committed: Mon Feb 1 08:28:18 2016 -0500 ---------------------------------------------------------------------- .../nifi-web-ui/src/main/webapp/js/nf/nf-universal-capture.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/nifi/blob/dbe8ff3f/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-universal-capture.js ---------------------------------------------------------------------- diff --git a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-universal-capture.js b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-universal-capture.js index 221a127..9c929a8 100644 --- a/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-universal-capture.js +++ b/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/nf-universal-capture.js @@ -106,13 +106,12 @@ $(document).ready(function () { evt.preventDefault(); } } 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 evt.preventDefault(); } } } - }); });
