aboutsummaryrefslogtreecommitdiff
path: root/js/mediators
diff options
context:
space:
mode:
authorArmen Kesablyan2012-03-15 15:14:28 -0700
committerArmen Kesablyan2012-03-15 15:14:28 -0700
commit725bb869618b9e0ebb2820a24bca5d1cf53a4810 (patch)
treea89562f07ff974a518da88689e49b0c958d567c8 /js/mediators
parent089534a80c64226bf7d124ab9147afce386fdb5c (diff)
downloadninja-725bb869618b9e0ebb2820a24bca5d1cf53a4810.tar.gz
Initial Data Binding Mediator
Signed-off-by: Armen Kesablyan <armen@motorola.com>
Diffstat (limited to 'js/mediators')
-rw-r--r--js/mediators/binding-mediator.js14
-rwxr-xr-xjs/mediators/keyboard-mediator.js2
2 files changed, 16 insertions, 0 deletions
diff --git a/js/mediators/binding-mediator.js b/js/mediators/binding-mediator.js
new file mode 100644
index 00000000..10d3f7c6
--- /dev/null
+++ b/js/mediators/binding-mediator.js
@@ -0,0 +1,14 @@
1/* <copyright>
2 This file contains proprietary software owned by Motorola Mobility, Inc.<br/>
3 No rights, expressed or implied, whatsoever to this software are provided by Motorola Mobility, Inc. hereunder.<br/>
4 (c) Copyright 2011 Motorola Mobility, Inc. All Rights Reserved.
5 </copyright> */
6
7var Montage = require("montage/core/core").Montage;
8var Component = require("montage/ui/component").Component;
9
10exports.bindingMediator = Montage.create(Component, {
11
12
13
14}); \ No newline at end of file
diff --git a/js/mediators/keyboard-mediator.js b/js/mediators/keyboard-mediator.js
index 65dd34cd..85a46739 100755
--- a/js/mediators/keyboard-mediator.js
+++ b/js/mediators/keyboard-mediator.js
@@ -203,6 +203,8 @@ exports.KeyboardMediator = Montage.create(Component, {
203 } 203 }
204 204
205 205
206
207
206 if((evt.keyCode == Keyboard.ENTER) && (evt.ctrlKey || evt.metaKey)) { 208 if((evt.keyCode == Keyboard.ENTER) && (evt.ctrlKey || evt.metaKey)) {
207 this.application.ninja.executeChromePreview(); 209 this.application.ninja.executeChromePreview();
208 return; 210 return;