From b4d19e469b3de98778002ac97814c6b647cba113 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sat, 22 Nov 2014 14:47:43 -0500 Subject: better chara input --- js/matrix.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/matrix.js') diff --git a/js/matrix.js b/js/matrix.js index a36d3db..8975f15 100644 --- a/js/matrix.js +++ b/js/matrix.js @@ -40,8 +40,8 @@ Matrix.prototype.forEach = function(f){ }) }) } -Matrix.prototype.focusLex = function(y,x){ - this.aa[mod(x,this.h)][mod(y,this.w)].focus() +Matrix.prototype.focusLex = function(x,y){ + this.aa[mod(y,this.h)][mod(x,this.w)].focus() } Matrix.prototype.clear = function(){ this.forEach(function(lex,x,y){ lex.clear() }) -- cgit v1.2.3-70-g09d2