NIFI-343: - Preventing default action when shift/ctrl clicking images. Project: http://git-wip-us.apache.org/repos/asf/incubator-nifi/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-nifi/commit/e486c564 Tree: http://git-wip-us.apache.org/repos/asf/incubator-nifi/tree/e486c564 Diff: http://git-wip-us.apache.org/repos/asf/incubator-nifi/diff/e486c564
Branch: refs/heads/NIFI-250 Commit: e486c5642bf7bf0131f3c19a117e8448a75ba8af Parents: e0390ec Author: Matt Gilman <[email protected]> Authored: Thu Feb 12 07:59:04 2015 -0500 Committer: Matt Gilman <[email protected]> Committed: Thu Feb 12 07:59:04 2015 -0500 ---------------------------------------------------------------------- .../nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-nifi/blob/e486c564/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js ---------------------------------------------------------------------- diff --git a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js index 83a3117..c9211b2 100644 --- a/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js +++ b/nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src/main/webapp/js/nf/canvas/nf-canvas-utils.js @@ -393,7 +393,7 @@ nf.CanvasUtils = (function () { */ disableImageHref: function (selection) { selection.on('click.disableImageHref', function () { - if (d3.event.ctrlKey) { + if (d3.event.ctrlKey || d3.event.shiftKey) { d3.event.preventDefault(); } });
