Skip to content

Commit b098399

Browse files
committed
Accept the Shift key for visualization events as well.
1 parent de6a866 commit b098399

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

js/neod3-visualization.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,8 @@ function Neod3Renderer() {
110110
renderer.on("touchend.zoom",null);
111111
}
112112

113-
function altHandler() {
114-
if (d3.event.altKey) {
113+
function keyHandler() {
114+
if (d3.event.altKey || d3.event.shiftKey) {
115115
enableZoomHandlers();
116116
}
117117
else {
@@ -151,7 +151,7 @@ function Neod3Renderer() {
151151
zoomHandlers.touchend = renderer.on("touchend.zoom");
152152
disableZoomHandlers();
153153

154-
d3.select('body').on("keydown", altHandler).on("keyup", altHandler);
154+
d3.select('body').on("keydown", keyHandler).on("keyup", keyHandler);
155155

156156
function refresh() {
157157
graphView.height($container.height());

0 commit comments

Comments
 (0)