keybinds: remove hHlLjk

This commit is contained in:
James Campos 2010-12-29 14:09:37 -08:00
parent 0b013a91a3
commit 6a8eb2eb54
2 changed files with 0 additions and 48 deletions

View File

@ -471,14 +471,6 @@ keyModeNormal = (e) ->
location.hash = ''
count or= 1
switch char
when "H"
if e.shiftKey
unless g.REPLY
temp = g.PAGENUM - count
if temp < 0 then temp = 0
location.pathname = "/#{g.BOARD}/#{temp}#1"
else
window.scrollBy -20 * count, 0
when "I"
if g.REPLY
unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)'
@ -509,8 +501,6 @@ keyModeNormal = (e) ->
if top > 0
reply.className = 'replyhl'
break
else
window.scrollBy 0, 20 * count
when "K"
if e.shiftKey
if not g.REPLY then [root] = getThread()
@ -531,16 +521,6 @@ keyModeNormal = (e) ->
if bot < height
reply.className = 'replyhl'
break
else
window.scrollBy 0, -20 * count
when "L"
if e.shiftKey
unless g.REPLY
temp = g.PAGENUM + count
if temp > 15 then temp = 15
location.pathname = "/#{g.BOARD}/#{temp}#0"
else
window.scrollBy 20 * count, 0
when "M"
if e.shiftKey
$("#imageExpand").click()

View File

@ -596,18 +596,6 @@
}
count || (count = 1);
switch (char) {
case "H":
if (e.shiftKey) {
if (!g.REPLY) {
temp = g.PAGENUM - count;
if (temp < 0) {
temp = 0;
}
return location.pathname = "/" + g.BOARD + "/" + temp + "#1";
}
} else {
return window.scrollBy(-20 * count, 0);
}
case "I":
if (g.REPLY) {
if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)'))) {
@ -652,8 +640,6 @@
}
}
return _results;
} else {
return window.scrollBy(0, 20 * count);
}
case "K":
if (e.shiftKey) {
@ -685,20 +671,6 @@
}
}
return _results2;
} else {
return window.scrollBy(0, -20 * count);
}
case "L":
if (e.shiftKey) {
if (!g.REPLY) {
temp = g.PAGENUM + count;
if (temp > 15) {
temp = 15;
}
return location.pathname = "/" + g.BOARD + "/" + temp + "#0";
}
} else {
return window.scrollBy(20 * count, 0);
}
case "M":
if (e.shiftKey) {