aboutsummaryrefslogtreecommitdiff
path: root/js/stage/stage.reel/stage.js
diff options
context:
space:
mode:
authorValerio Virgillito2012-03-14 18:04:11 -0700
committerValerio Virgillito2012-03-14 18:04:11 -0700
commita7cb2c0b22f03b79f19d4a9a2eb691d1ccc392f9 (patch)
tree8daf6d201890c1fb7f8dbffe492500d492ae96d7 /js/stage/stage.reel/stage.js
parente07ec7dd1a4b8df747f6af0d54fe95e3a237f0c8 (diff)
downloadninja-a7cb2c0b22f03b79f19d4a9a2eb691d1ccc392f9.tar.gz
adding a focus manager to handle panel bugs where blur was not getting called when clicking on the canvas.
Signed-off-by: Valerio Virgillito <valerio@motorola.com>
Diffstat (limited to 'js/stage/stage.reel/stage.js')
-rwxr-xr-xjs/stage/stage.reel/stage.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/stage/stage.reel/stage.js b/js/stage/stage.reel/stage.js
index 4c1d046b..a624b2c6 100755
--- a/js/stage/stage.reel/stage.js
+++ b/js/stage/stage.reel/stage.js
@@ -319,6 +319,10 @@ exports.Stage = Montage.create(Component, {
319 319
320 handleMousedown: { 320 handleMousedown: {
321 value: function(event) { 321 value: function(event) {
322 // Call the focus manager to set focus to blur any focus'd elements
323 this.focusManager.setFocus();
324
325
322 var point; 326 var point;
323// event.preventDefault(); // commenting because HTML elements in the IDE are retaining focus 327// event.preventDefault(); // commenting because HTML elements in the IDE are retaining focus
324 // If right click set the context menu to true to prevent a mouse up. 328 // If right click set the context menu to true to prevent a mouse up.