|
|
@ -168,31 +168,31 @@ class NavigationHandler { |
|
|
|
this.keycharm.reset(); |
|
|
|
|
|
|
|
if (this.activated === true) { |
|
|
|
this.keycharm.bind("up", this.bindToRedraw.bind(this, "_moveUp"), "keydown"); |
|
|
|
this.keycharm.bind("down", this.bindToRedraw.bind(this, "_moveDown"), "keydown"); |
|
|
|
this.keycharm.bind("left", this.bindToRedraw.bind(this, "_moveLeft"), "keydown"); |
|
|
|
this.keycharm.bind("right", this.bindToRedraw.bind(this, "_moveRight"), "keydown"); |
|
|
|
this.keycharm.bind("=", this.bindToRedraw.bind(this, "_zoomIn"), "keydown"); |
|
|
|
this.keycharm.bind("num+", this.bindToRedraw.bind(this, "_zoomIn"), "keydown"); |
|
|
|
this.keycharm.bind("num-", this.bindToRedraw.bind(this, "_zoomOut"), "keydown"); |
|
|
|
this.keycharm.bind("-", this.bindToRedraw.bind(this, "_zoomOut"), "keydown"); |
|
|
|
this.keycharm.bind("[", this.bindToRedraw.bind(this, "_zoomOut"), "keydown"); |
|
|
|
this.keycharm.bind("]", this.bindToRedraw.bind(this, "_zoomIn"), "keydown"); |
|
|
|
this.keycharm.bind("pageup", this.bindToRedraw.bind(this, "_zoomIn"), "keydown"); |
|
|
|
this.keycharm.bind("pagedown", this.bindToRedraw.bind(this, "_zoomOut"), "keydown"); |
|
|
|
|
|
|
|
this.keycharm.bind("up", this.unbindFromRedraw.bind(this, "_moveUp"), "keyup"); |
|
|
|
this.keycharm.bind("down", this.unbindFromRedraw.bind(this, "_moveDown"), "keyup"); |
|
|
|
this.keycharm.bind("left", this.unbindFromRedraw.bind(this, "_moveLeft"), "keyup"); |
|
|
|
this.keycharm.bind("right", this.unbindFromRedraw.bind(this, "_moveRight"), "keyup"); |
|
|
|
this.keycharm.bind("=", this.unbindFromRedraw.bind(this, "_zoomIn"), "keyup"); |
|
|
|
this.keycharm.bind("num+", this.unbindFromRedraw.bind(this, "_zoomIn"), "keyup"); |
|
|
|
this.keycharm.bind("num-", this.unbindFromRedraw.bind(this, "_zoomOut"), "keyup"); |
|
|
|
this.keycharm.bind("-", this.unbindFromRedraw.bind(this, "_zoomOut"), "keyup"); |
|
|
|
this.keycharm.bind("[", this.unbindFromRedraw.bind(this, "_zoomOut"), "keyup"); |
|
|
|
this.keycharm.bind("]", this.unbindFromRedraw.bind(this, "_zoomIn"), "keyup"); |
|
|
|
this.keycharm.bind("pageup", this.unbindFromRedraw.bind(this, "_zoomIn"), "keyup"); |
|
|
|
this.keycharm.bind("pagedown", this.unbindFromRedraw.bind(this, "_zoomOut"), "keyup"); |
|
|
|
this.keycharm.bind("up", () => {this.bindToRedraw("_moveUp") ;}, "keydown"); |
|
|
|
this.keycharm.bind("down", () => {this.bindToRedraw("_moveDown") ;}, "keydown"); |
|
|
|
this.keycharm.bind("left", () => {this.bindToRedraw("_moveLeft") ;}, "keydown"); |
|
|
|
this.keycharm.bind("right", () => {this.bindToRedraw("_moveRight");}, "keydown"); |
|
|
|
this.keycharm.bind("=", () => {this.bindToRedraw("_zoomIn") ;}, "keydown"); |
|
|
|
this.keycharm.bind("num+", () => {this.bindToRedraw("_zoomIn") ;}, "keydown"); |
|
|
|
this.keycharm.bind("num-", () => {this.bindToRedraw("_zoomOut") ;}, "keydown"); |
|
|
|
this.keycharm.bind("-", () => {this.bindToRedraw("_zoomOut") ;}, "keydown"); |
|
|
|
this.keycharm.bind("[", () => {this.bindToRedraw("_zoomOut") ;}, "keydown"); |
|
|
|
this.keycharm.bind("]", () => {this.bindToRedraw("_zoomIn") ;}, "keydown"); |
|
|
|
this.keycharm.bind("pageup", () => {this.bindToRedraw("_zoomIn") ;}, "keydown"); |
|
|
|
this.keycharm.bind("pagedown", () => {this.bindToRedraw("_zoomOut") ;}, "keydown"); |
|
|
|
|
|
|
|
this.keycharm.bind("up", () => {this.unbindFromRedraw("_moveUp") ;}, "keyup"); |
|
|
|
this.keycharm.bind("down", () => {this.unbindFromRedraw("_moveDown") ;}, "keyup"); |
|
|
|
this.keycharm.bind("left", () => {this.unbindFromRedraw("_moveLeft") ;}, "keyup"); |
|
|
|
this.keycharm.bind("right", () => {this.unbindFromRedraw("_moveRight");}, "keyup"); |
|
|
|
this.keycharm.bind("=", () => {this.unbindFromRedraw("_zoomIn") ;}, "keyup"); |
|
|
|
this.keycharm.bind("num+", () => {this.unbindFromRedraw("_zoomIn") ;}, "keyup"); |
|
|
|
this.keycharm.bind("num-", () => {this.unbindFromRedraw("_zoomOut") ;}, "keyup"); |
|
|
|
this.keycharm.bind("-", () => {this.unbindFromRedraw("_zoomOut") ;}, "keyup"); |
|
|
|
this.keycharm.bind("[", () => {this.unbindFromRedraw("_zoomOut") ;}, "keyup"); |
|
|
|
this.keycharm.bind("]", () => {this.unbindFromRedraw("_zoomIn") ;}, "keyup"); |
|
|
|
this.keycharm.bind("pageup", () => {this.unbindFromRedraw("_zoomIn") ;}, "keyup"); |
|
|
|
this.keycharm.bind("pagedown", () => {this.unbindFromRedraw("_zoomOut") ;}, "keyup"); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|