Swap j, k key bindings to be consistent with vi
This commit is contained in:
parent
bbfc06b1ee
commit
f4b78a2e4f
|
@ -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();
|
||||
}));
|
||||
|
|
|
@ -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();
|
||||
}));
|
||||
|
|
Loading…
Reference in a new issue