keybinds: remove hHlLjk
This commit is contained in:
parent
0b013a91a3
commit
6a8eb2eb54
@ -471,14 +471,6 @@ keyModeNormal = (e) ->
|
|||||||
location.hash = ''
|
location.hash = ''
|
||||||
count or= 1
|
count or= 1
|
||||||
switch char
|
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"
|
when "I"
|
||||||
if g.REPLY
|
if g.REPLY
|
||||||
unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)'
|
unless qrLink = $ 'td.replyhl span[id] a:not(:first-child)'
|
||||||
@ -509,8 +501,6 @@ keyModeNormal = (e) ->
|
|||||||
if top > 0
|
if top > 0
|
||||||
reply.className = 'replyhl'
|
reply.className = 'replyhl'
|
||||||
break
|
break
|
||||||
else
|
|
||||||
window.scrollBy 0, 20 * count
|
|
||||||
when "K"
|
when "K"
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
if not g.REPLY then [root] = getThread()
|
if not g.REPLY then [root] = getThread()
|
||||||
@ -531,16 +521,6 @@ keyModeNormal = (e) ->
|
|||||||
if bot < height
|
if bot < height
|
||||||
reply.className = 'replyhl'
|
reply.className = 'replyhl'
|
||||||
break
|
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"
|
when "M"
|
||||||
if e.shiftKey
|
if e.shiftKey
|
||||||
$("#imageExpand").click()
|
$("#imageExpand").click()
|
||||||
|
|||||||
28
4chan_x.js
28
4chan_x.js
@ -596,18 +596,6 @@
|
|||||||
}
|
}
|
||||||
count || (count = 1);
|
count || (count = 1);
|
||||||
switch (char) {
|
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":
|
case "I":
|
||||||
if (g.REPLY) {
|
if (g.REPLY) {
|
||||||
if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)'))) {
|
if (!(qrLink = $('td.replyhl span[id] a:not(:first-child)'))) {
|
||||||
@ -652,8 +640,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _results;
|
return _results;
|
||||||
} else {
|
|
||||||
return window.scrollBy(0, 20 * count);
|
|
||||||
}
|
}
|
||||||
case "K":
|
case "K":
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
@ -685,20 +671,6 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
return _results2;
|
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":
|
case "M":
|
||||||
if (e.shiftKey) {
|
if (e.shiftKey) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user