| Index: lib/keySelector.js |
| =================================================================== |
| --- a/lib/keySelector.js |
| +++ b/lib/keySelector.js |
| @@ -14,43 +14,43 @@ |
| * You should have received a copy of the GNU General Public License |
| * along with Adblock Plus. If not, see <http://www.gnu.org/licenses/>. |
| */ |
| Cu.import("resource://gre/modules/Services.jsm"); |
| let validModifiers = |
| { |
| - ACCEL: "control", |
| + ACCEL: null, |
| CTRL: "control", |
| CONTROL: "control", |
| SHIFT: "shift", |
| ALT: "alt", |
| META: "meta", |
| __proto__: null |
| }; |
| /** |
| * Sets the correct value of validModifiers.ACCEL. |
| */ |
| function initAccelKey() |
| { |
| + validModifiers.ACCEL = "control"; |
| try |
| { |
| let accelKey = Services.prefs.getIntPref("ui.key.accelKey"); |
| if (accelKey == Ci.nsIDOMKeyEvent.DOM_VK_CONTROL) |
| validModifiers.ACCEL = "control"; |
| else if (accelKey == Ci.nsIDOMKeyEvent.DOM_VK_ALT) |
| validModifiers.ACCEL = "alt"; |
| else if (accelKey == Ci.nsIDOMKeyEvent.DOM_VK_META) |
| validModifiers.ACCEL = "meta"; |
| } |
| catch(e) |
| { |
| - validModifiers.ACCEL = "control"; |
| Cu.reportError(e); |
| } |
| } |
| exports.KeySelector = KeySelector; |
| /** |
| * This class provides capabilities to find and use available keyboard shortcut |