0-9, not 1-10
This commit is contained in:
parent
fdbd55038b
commit
7023841e48
@ -406,7 +406,7 @@ keyAct = (e) ->
|
|||||||
location.pathname = "/#{g.BOARD}/#{temp}#1"
|
location.pathname = "/#{g.BOARD}/#{temp}#1"
|
||||||
when "J"
|
when "J"
|
||||||
temp = position + count
|
temp = position + count
|
||||||
if temp > 10 then temp = 10
|
if temp > 9 then temp = 9
|
||||||
location.hash = 'p' + temp
|
location.hash = 'p' + temp
|
||||||
when "K"
|
when "K"
|
||||||
temp = position - count
|
temp = position - count
|
||||||
|
|||||||
@ -503,8 +503,8 @@
|
|||||||
break;
|
break;
|
||||||
case "J":
|
case "J":
|
||||||
temp = position + count;
|
temp = position + count;
|
||||||
if (temp > 10) {
|
if (temp > 9) {
|
||||||
temp = 10;
|
temp = 9;
|
||||||
}
|
}
|
||||||
location.hash = 'p' + temp;
|
location.hash = 'p' + temp;
|
||||||
break;
|
break;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user