Skip to content

Commit f37143f

Browse files
committed
Fix bug in ngl_ui keypress handler
1 parent ada80f9 commit f37143f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/resources/static/js/ngl_ui.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,22 +15,22 @@ function default_keypress(stage, e) {
1515
}
1616
if (e !== undefined && e.key == "s") { // 115 is s
1717
console.log("s was pressed: small screenshot (1x)");
18-
screenshot(1);
18+
screenshot(stage,1);
1919
}
2020

2121
if (e !== undefined && e.key == "m") { // 109 is m
2222
console.log("m was pressed: medium screenshot (2x)");
23-
screenshot(2);
23+
screenshot(stage,2);
2424
}
2525

2626
if (e !== undefined && e.key == "l") { // 108 is l
2727
console.log("l was pressed: large screenshot (3x)");
28-
screenshot(3);
28+
screenshot(stage,3);
2929
}
3030

3131
if (e !== undefined && e.key == "x") { // 120 is x
3232
console.log("x was pressed: xtra large screenshot (4x)");
33-
screenshot(4);
33+
screenshot(stage,4);
3434
}
3535

3636
};

0 commit comments

Comments
 (0)