Skip to content

Commit 78f29b3

Browse files
authored
Merge pull request #4124 from OpenShot/shift-event-error
Don't check event.shiftKey if event doesn't exist
2 parents 5548711 + 259ad7a commit 78f29b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/timeline/js/functions.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ function moveBoundingBox(scope, previous_x, previous_y, x_offset, y_offset, left
273273
snapping_result.top = top;
274274

275275
// Check for shift key
276-
if (event.shiftKey) {
276+
if ( typeof(event) !== "undefined" && event.shiftKey) {
277277
// freeze X movement
278278
x_offset = 0;
279279
snapping_result.left = previous_x;

0 commit comments

Comments
 (0)