aboutsummaryrefslogtreecommitdiff
path: root/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
diff options
context:
space:
mode:
authorJonathan Duran2012-06-26 08:14:04 -0700
committerJonathan Duran2012-06-26 08:14:04 -0700
commiteb9aab570b1d1d6e7544a3f3907e15e0d565bb00 (patch)
tree2e1e960ee9fcaf1ded81487b0cfbf6c056ba6fd7 /js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
parent1bc2fb4441387877bc6b1aef78e4e466f526f60f (diff)
parent874c3f17deb946a576d2cbefffe189e51ca7cb9a (diff)
downloadninja-eb9aab570b1d1d6e7544a3f3907e15e0d565bb00.tar.gz
Merge branch 'refs/heads/timeline-local' into TimelineUber
Diffstat (limited to 'js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js')
-rw-r--r--js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js20
1 files changed, 18 insertions, 2 deletions
diff --git a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
index e613d4d7..470062ba 100644
--- a/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
+++ b/js/panels/Timeline/TimelinePanel.reel/TimelinePanel.js
@@ -1401,27 +1401,43 @@ var TimelinePanel = exports.TimelinePanel = Montage.create(Component, {
1401 1401
1402 timelineLeftPaneKeydown: { 1402 timelineLeftPaneKeydown: {
1403 value: function(event) { 1403 value: function(event) {
1404 var ua = navigator.userAgent.toLowerCase(),
1405 boolIsMac = false;
1406 if (ua.indexOf("mac") > -1) {
1407 boolIsMac = true;
1408 }
1404 if (event.keyCode === 16) { 1409 if (event.keyCode === 16) {
1405 // Shift key has been pressed 1410 // Shift key has been pressed
1406 this._isShiftPressed = true; 1411 this._isShiftPressed = true;
1407 } 1412 }
1408 if (event.keyCode === 17) { 1413 if ((event.keyCode === 17) && !boolIsMac) {
1409 // Control key has been pressed 1414 // Control key has been pressed
1410 this._isControlPressed = true; 1415 this._isControlPressed = true;
1411 } 1416 }
1417 if (event.metaKey === true) {
1418 this._isControlPressed = true;
1419 }
1412 } 1420 }
1413 }, 1421 },
1414 1422
1415 timelineLeftPaneKeyup: { 1423 timelineLeftPaneKeyup: {
1416 value: function(event) { 1424 value: function(event) {
1425 var ua = navigator.userAgent.toLowerCase(),
1426 boolIsMac = false;
1427 if (ua.indexOf("mac") > -1) {
1428 boolIsMac = true;
1429 }
1417 if (event.keyCode === 16) { 1430 if (event.keyCode === 16) {
1418 // Shift key has been released 1431 // Shift key has been released
1419 this._isShiftPressed = false; 1432 this._isShiftPressed = false;
1420 } 1433 }
1421 if (event.keyCode === 17) { 1434 if ((event.keyCode === 17) && !boolIsMac) {
1422 // Control key has been released 1435 // Control key has been released
1423 this._isControlPressed = false; 1436 this._isControlPressed = false;
1424 } 1437 }
1438 if (event.metaKey === false) {
1439 this._isControlPressed = false;
1440 }
1425 } 1441 }
1426 }, 1442 },
1427 createstageElement:{ 1443 createstageElement:{