We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de6a866 commit b098399Copy full SHA for b098399
js/neod3-visualization.js
@@ -110,8 +110,8 @@ function Neod3Renderer() {
110
renderer.on("touchend.zoom",null);
111
}
112
113
- function altHandler() {
114
- if (d3.event.altKey) {
+ function keyHandler() {
+ if (d3.event.altKey || d3.event.shiftKey) {
115
enableZoomHandlers();
116
117
else {
@@ -151,7 +151,7 @@ function Neod3Renderer() {
151
zoomHandlers.touchend = renderer.on("touchend.zoom");
152
disableZoomHandlers();
153
154
- d3.select('body').on("keydown", altHandler).on("keyup", altHandler);
+ d3.select('body').on("keydown", keyHandler).on("keyup", keyHandler);
155
156
function refresh() {
157
graphView.height($container.height());
0 commit comments