keybinds: 0
This commit is contained in:
parent
ce4f7a2ef7
commit
72c70cff6b
@ -624,6 +624,8 @@
|
|||||||
} else {
|
} else {
|
||||||
if (kc === 27) {
|
if (kc === 27) {
|
||||||
key = '<Esc>';
|
key = '<Esc>';
|
||||||
|
} else if ((48 <= kc && kc <= 57)) {
|
||||||
|
key = String.fromCharCode(kc);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return keybinds.key = key;
|
return keybinds.key = key;
|
||||||
@ -659,6 +661,8 @@
|
|||||||
var thread;
|
var thread;
|
||||||
thread = nav.getThread();
|
thread = nav.getThread();
|
||||||
switch (keybinds.key) {
|
switch (keybinds.key) {
|
||||||
|
case '0':
|
||||||
|
return window.location = "/" + g.BOARD + "/#0";
|
||||||
case 'I':
|
case 'I':
|
||||||
return keybinds.qr(thread);
|
return keybinds.qr(thread);
|
||||||
case 'J':
|
case 'J':
|
||||||
|
|||||||
@ -440,6 +440,8 @@ keybinds =
|
|||||||
else
|
else
|
||||||
if kc is 27
|
if kc is 27
|
||||||
key = '<Esc>'
|
key = '<Esc>'
|
||||||
|
else if 48 <= kc <= 57 #0-9
|
||||||
|
key = String.fromCharCode kc
|
||||||
keybinds.key = key
|
keybinds.key = key
|
||||||
|
|
||||||
keypress: (e) ->
|
keypress: (e) ->
|
||||||
@ -471,6 +473,8 @@ keybinds =
|
|||||||
normal: (e) ->
|
normal: (e) ->
|
||||||
thread = nav.getThread()
|
thread = nav.getThread()
|
||||||
switch keybinds.key
|
switch keybinds.key
|
||||||
|
when '0'
|
||||||
|
window.location = "/#{g.BOARD}/#0"
|
||||||
when 'I'
|
when 'I'
|
||||||
keybinds.qr thread
|
keybinds.qr thread
|
||||||
when 'J'
|
when 'J'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user