diff options
| author | Alon Levy <alon@pobox.com> | 2015-03-12 00:33:53 +0200 |
|---|---|---|
| committer | Alon Levy <alon@pobox.com> | 2015-03-12 00:34:10 +0200 |
| commit | 9e002baeb5e2770411e46b9dfd91e1bb26d4d668 (patch) | |
| tree | dd669f0d144839196ad67f99b71db2638f0c51b0 /src/client/robot.js | |
| parent | ad98e69a60a012f6ea065be80e660fdc29c178ed (diff) | |
client: use some more VK constants
Diffstat (limited to 'src/client/robot.js')
| -rw-r--r-- | src/client/robot.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/client/robot.js b/src/client/robot.js index 700e41b6..cfe13482 100644 --- a/src/client/robot.js +++ b/src/client/robot.js @@ -1,4 +1,5 @@ -define(['jquery'], function($) { +define(['jquery', 'consts'], +function($, consts) { var sentence=""; /*sentence+=" #Rhizibot is showing you a #tutorial|"; @@ -47,8 +48,8 @@ var robot = function (element, sentence) { } } else { var e = jQuery.Event("keypress"); - e.which = 13; - e.keyCode = 13; + e.which = consts.VK_ENTER; + e.keyCode = consts.VK_ENTER; $("#textanalyser").trigger(e); window.setTimeout( r.next_event, 650/r.speed ); } |
