Swap j, k key bindings to be consistent with vi

This commit is contained in:
Nikita Kouevda 2015-01-04 13:51:03 -08:00
parent bbfc06b1ee
commit f4b78a2e4f
2 changed files with 4 additions and 4 deletions

View file

@ -23,11 +23,11 @@ module.exports = function(ctrl) {
control.next(ctrl);
m.redraw();
}));
k.bind(['up', 'j'], preventing(function() {
k.bind(['up', 'k'], preventing(function() {
control.first(ctrl);
m.redraw();
}));
k.bind(['down', 'k'], preventing(function() {
k.bind(['down', 'j'], preventing(function() {
control.last(ctrl);
m.redraw();
}));

View file

@ -37,11 +37,11 @@ module.exports = {
next(ctrl);
m.redraw();
}));
k.bind(['up', 'j'], preventing(function() {
k.bind(['up', 'k'], preventing(function() {
ctrl.replay.jump(1);
m.redraw();
}));
k.bind(['down', 'k'], preventing(function() {
k.bind(['down', 'j'], preventing(function() {
ctrl.replay.jump(ctrl.data.game.moves.length);
m.redraw();
}));