diff --git a/4chan_x.coffee b/4chan_x.coffee index c6d101d79..3025c68a0 100644 --- a/4chan_x.coffee +++ b/4chan_x.coffee @@ -11,7 +11,7 @@ config = 'Reply Hiding': [true, 'Hide single replies'] 'Show Stubs': [true, 'Of hidden threads / replies'] 'Thread Navigation': [true, 'Navigate to previous / next thread'] - 'Keyboard Actions': [true, 'Perform actions with your keyboard'] + 'Keybinds': [true, 'Binds actions to keys'] 'Reply Navigation': [true, 'Navigate to the beginning / end of a thread'] 'Thread Watcher': [true, 'Bookmark threads'] 'Thread Expansion': [true, 'View all replies'] @@ -439,7 +439,7 @@ keydown = (e) -> g.keyCode = kc keyActAdd = -> - if getConfig 'Keyboard Actions' + if getConfig 'Keybinds' d.addEventListener 'keydown', keydown, true d.addEventListener 'keypress', keypress, true @@ -552,7 +552,7 @@ quickReply = (e) -> m clone, listener: ['submit', formSubmit] target: 'iframe' - if getConfig 'Keyboard Actions' + if getConfig 'Keybinds' inputs = $$ 'input[type=text], textarea', clone for input in inputs input.addEventListener 'focus', keyActRem, true @@ -961,7 +961,7 @@ if getConfig 'Reply Navigation' addTo span, tn(' '), up, tn(' '), down inAfter el, span -if getConfig 'Keyboard Actions' +if getConfig 'Keybinds' form = $ 'div.postarea > form' inputs = $$ 'input[type=text], textarea', form for input in inputs diff --git a/4chan_x.js b/4chan_x.js index 765d2d7c4..bb5beda0c 100644 --- a/4chan_x.js +++ b/4chan_x.js @@ -6,7 +6,7 @@ 'Reply Hiding': [true, 'Hide single replies'], 'Show Stubs': [true, 'Of hidden threads / replies'], 'Thread Navigation': [true, 'Navigate to previous / next thread'], - 'Keyboard Actions': [true, 'Perform actions with your keyboard'], + 'Keybinds': [true, 'Binds actions to keys'], 'Reply Navigation': [true, 'Navigate to the beginning / end of a thread'], 'Thread Watcher': [true, 'Bookmark threads'], 'Thread Expansion': [true, 'View all replies'], @@ -554,7 +554,7 @@ } }; keyActAdd = function() { - if (getConfig('Keyboard Actions')) { + if (getConfig('Keybinds')) { d.addEventListener('keydown', keydown, true); return d.addEventListener('keypress', keypress, true); } @@ -714,7 +714,7 @@ listener: ['submit', formSubmit], target: 'iframe' }); - if (getConfig('Keyboard Actions')) { + if (getConfig('Keybinds')) { inputs = $$('input[type=text], textarea', clone); _ref = inputs; for (_i = 0, _len = _ref.length; _i < _len; _i++) { @@ -1243,7 +1243,7 @@ return _result; }); } - if (getConfig('Keyboard Actions')) { + if (getConfig('Keybinds')) { form = $('div.postarea > form'); inputs = $$('input[type=text], textarea', form); _ref = inputs;