Don't start keybinding before everything is ready.
This commit is contained in:
parent
7f4070ec37
commit
fa51b7d7eb
@ -2822,9 +2822,9 @@
|
|||||||
if (g.VIEW === 'catalog' || !Conf['Keybinds']) {
|
if (g.VIEW === 'catalog' || !Conf['Keybinds']) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
$.on(d, 'keydown', Keybinds.keydown);
|
|
||||||
return $.on(d, '4chanXInitFinished', function() {
|
return $.on(d, '4chanXInitFinished', function() {
|
||||||
var node, _i, _len, _ref;
|
var node, _i, _len, _ref;
|
||||||
|
$.on(d, 'keydown', Keybinds.keydown);
|
||||||
_ref = $$('[accesskey]');
|
_ref = $$('[accesskey]');
|
||||||
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
||||||
node = _ref[_i];
|
node = _ref[_i];
|
||||||
|
|||||||
@ -1550,8 +1550,8 @@ Keybinds =
|
|||||||
init: ->
|
init: ->
|
||||||
return if g.VIEW is 'catalog' or !Conf['Keybinds']
|
return if g.VIEW is 'catalog' or !Conf['Keybinds']
|
||||||
|
|
||||||
$.on d, 'keydown', Keybinds.keydown
|
|
||||||
$.on d, '4chanXInitFinished', ->
|
$.on d, '4chanXInitFinished', ->
|
||||||
|
$.on d, 'keydown', Keybinds.keydown
|
||||||
for node in $$ '[accesskey]'
|
for node in $$ '[accesskey]'
|
||||||
node.removeAttribute 'accesskey'
|
node.removeAttribute 'accesskey'
|
||||||
return
|
return
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user