From a64ad843a77adfd9332cd524a860924190858c72 Mon Sep 17 00:00:00 2001 From: Nicolas Stepien Date: Thu, 23 Jun 2011 23:49:14 +0200 Subject: [PATCH] ^ -> ctrl+ --- 4chan_x.user.js | 8 ++++---- script.coffee | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/4chan_x.user.js b/4chan_x.user.js index b07ae8628..2ca3cb689 100644 --- a/4chan_x.user.js +++ b/4chan_x.user.js @@ -694,7 +694,7 @@ init: function() { var key; keybinds.close = (key = $.getValue('key/close', 0)).length ? key : ''; - keybinds.spoiler = (key = $.getValue('key/spoiler', 0)).length ? key : '^s'; + keybinds.spoiler = (key = $.getValue('key/spoiler', 0)).length ? key : 'ctrl+s'; keybinds.zero = (key = $.getValue('key/zero', 0)).length ? key : '0'; keybinds.openQR = (key = $.getValue('key/openQR', 0)).length ? key : 'i'; keybinds.openEmptyQR = (key = $.getValue('key/openEmptyQR', 0)).length ? key : 'I'; @@ -728,7 +728,7 @@ key = key.toLowerCase(); } if (e.ctrlKey) { - key = '^' + key; + key = 'ctrl+' + key; } if (e.altKey) { key = 'alt+' + key; @@ -1014,7 +1014,7 @@ var arr, checked, description, dialog, hiddenNum, hiddenThreads, html, input, key, li, link, main, obj, overlay, ul, _i, _j, _k, _len, _len2, _len3, _ref, _ref2, _ref3, _ref4; hiddenThreads = $.getValue("hiddenThreads/" + g.BOARD + "/", {}); hiddenNum = Object.keys(g.hiddenReplies).length + Object.keys(hiddenThreads).length; - html = "

"; + html = "

"; dialog = $.el('div', { id: 'options', innerHTML: html @@ -1113,7 +1113,7 @@ key = key.toLowerCase(); } if (e.ctrlKey) { - key = '^' + key; + key = 'ctrl+' + key; } if (e.altKey) { key = 'alt+' + key; diff --git a/script.coffee b/script.coffee index 9c9142055..4356217a0 100644 --- a/script.coffee +++ b/script.coffee @@ -490,7 +490,7 @@ replyHiding = keybinds = init: -> keybinds.close = if (key = $.getValue 'key/close', 0).length then key else '' - keybinds.spoiler = if (key = $.getValue 'key/spoiler', 0).length then key else '^s' + keybinds.spoiler = if (key = $.getValue 'key/spoiler', 0).length then key else 'ctrl+s' keybinds.zero = if (key = $.getValue 'key/zero', 0).length then key else '0' keybinds.openQR = if (key = $.getValue 'key/openQR', 0).length then key else 'i' keybinds.openEmptyQR = if (key = $.getValue 'key/openEmptyQR', 0).length then key else 'I' @@ -522,7 +522,7 @@ keybinds = key = String.fromCharCode kc if !e.shiftKey key = key.toLowerCase() - if e.ctrlKey then key = '^' + key + if e.ctrlKey then key = 'ctrl+' + key if e.altKey then key = 'alt+' + key else if kc is 27 @@ -792,7 +792,7 @@ options = ActionsKeybinds Close Options or QR - Quick spoiler + Quick spoiler Jump to page 0 Open QR with post number inserted Open QR without post number inserted @@ -883,7 +883,7 @@ options = key = String.fromCharCode kc if !e.shiftKey key = key.toLowerCase() - if e.ctrlKey then key = '^' + key + if e.ctrlKey then key = 'ctrl+' + key if e.altKey then key = 'alt+' + key else if kc is 27