summaryrefslogtreecommitdiff
path: root/src/textanalysis.ui.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/textanalysis.ui.js')
-rw-r--r--src/textanalysis.ui.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/textanalysis.ui.js b/src/textanalysis.ui.js
index f0bbe105..5756fce0 100644
--- a/src/textanalysis.ui.js
+++ b/src/textanalysis.ui.js
@@ -117,8 +117,8 @@ return {
},
});
- var document_keypress = new Bacon.Bus();
- rz_bus.ui_key.plug(document_keypress);
+ var document_keydown = new Bacon.Bus();
+ rz_bus.ui_key.plug(document_keydown);
element.keydown(function(e) {
var ret = undefined;
@@ -144,7 +144,7 @@ return {
suggestionChange = true;
break;
}
- document_keypress.push({where: consts.KEYSTROKE_WHERE_DOCUMENT, keys: [e.keyCode]});
+ document_keydown.push({where: consts.KEYSTROKE_WHERE_DOCUMENT, keys: [e.keyCode]});
return ret;
});
@@ -170,9 +170,9 @@ return {
e.preventDefault();
});
- var element_keypress = new Bacon.Bus();
- rz_bus.ui_key.plug(element_keypress);
- element.keypress(function(e) {
+ var element_keydown = new Bacon.Bus();
+ rz_bus.ui_key.plug(element_keydown);
+ element.keydown(function(e) {
var ret = undefined;
switch (e.which) {
case 13:
@@ -190,7 +190,7 @@ return {
ret = false;
break;
}
- element_keypress.push({where: consts.KEYSTROKE_WHERE_TEXTANALYSIS, keys:[e.which]});
+ element_keydown.push({where: consts.KEYSTROKE_WHERE_TEXTANALYSIS, keys:[e.which]});
return ret;
});