Skip to content
This repository has been archived by the owner on Feb 15, 2018. It is now read-only.

Commit

Permalink
fix meta key issues on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
ttaubert committed Nov 12, 2014
1 parent b44bf20 commit 060ed02
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 4 deletions.
5 changes: 4 additions & 1 deletion README.md
Expand Up @@ -10,9 +10,12 @@ It additionally helps you discover new ones.

* firefox 32 issues
* linux super key issues
* test on real windows + linux
* meta-alt-L produces wrong combination
* fix select tab 1-8 and last tab shortcuts (on linux?)

* Pressing Alt key on Windows removes the Meta key


# TODO

* localization
Expand Down
Binary file modified customizable-shortcuts.xpi
Binary file not shown.
2 changes: 1 addition & 1 deletion data/panel.js
Expand Up @@ -4,7 +4,7 @@

"use strict";

const MODIFIER_KEYS = {16: "shift", 17: "control", 18: "alt", 224: "meta"};
const MODIFIER_KEYS = {16: "shift", 17: "control", 18: "alt", 91: "meta", 92: "meta", 224: "meta"};
const MODIFIER_NAMES = {control: "Ctrl", meta: "Meta", shift: "Shift", alt: "Alt"};

// Notify the parent that we're ready.
Expand Down
2 changes: 1 addition & 1 deletion lib/keys.js
Expand Up @@ -83,7 +83,7 @@ function valueForKeyCode(keyCode) {
return Ci.nsIDOMKeyEvent["DOM_" + keyCode] || null;
}

const MODIFIER_KEYS = {16: "shift", 17: "control", 18: "alt", 224: "meta"};
const MODIFIER_KEYS = {16: "shift", 17: "control", 18: "alt", 91: "meta", 92: "meta", 224: "meta"};

function parseModifiers(attr) {
let modifiers = attr.toLowerCase().split(/[,\s]/);
Expand Down
2 changes: 1 addition & 1 deletion lib/main.js
Expand Up @@ -83,7 +83,7 @@ panel.port.on("overlays", function (overlays) {
storage.overlays = gOverlays = overlays;
});

const MODIFIER_KEYS = {16: "shift", 17: "control", 18: "alt", 224: "meta"};
const MODIFIER_KEYS = {16: "shift", 17: "control", 18: "alt", 91: "meta", 92: "meta", 224: "meta"};

function modifiersFromEvent(event) {
let modifiers = [];
Expand Down

0 comments on commit 060ed02

Please sign in to comment.