Don't intercept QR keybinds when QR or posting is disabled.
This commit is contained in:
parent
d65dc2ca97
commit
d6cb44af7b
@ -33,9 +33,10 @@ Keybinds =
|
|||||||
when Conf['Toggle header']
|
when Conf['Toggle header']
|
||||||
Header.toggleBarVisibility()
|
Header.toggleBarVisibility()
|
||||||
when Conf['Open empty QR']
|
when Conf['Open empty QR']
|
||||||
|
return unless QR.postingIsEnabled
|
||||||
Keybinds.qr()
|
Keybinds.qr()
|
||||||
when Conf['Open QR']
|
when Conf['Open QR']
|
||||||
return unless threadRoot
|
return unless QR.postingIsEnabled and threadRoot
|
||||||
Keybinds.qr threadRoot
|
Keybinds.qr threadRoot
|
||||||
when Conf['Open settings']
|
when Conf['Open settings']
|
||||||
Settings.open()
|
Settings.open()
|
||||||
@ -211,7 +212,6 @@ Keybinds =
|
|||||||
key
|
key
|
||||||
|
|
||||||
qr: (thread) ->
|
qr: (thread) ->
|
||||||
return unless Conf['Quick Reply'] and QR.postingIsEnabled
|
|
||||||
QR.open()
|
QR.open()
|
||||||
if thread?
|
if thread?
|
||||||
QR.quote.call $ 'input', $('.post.highlight', thread) or thread
|
QR.quote.call $ 'input', $('.post.highlight', thread) or thread
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user