Skip to content
This repository has been archived by the owner on Dec 13, 2020. It is now read-only.

Commit

Permalink
Add "Alt+Spacebar" to blacklist since it's not interceptible on Windo…
Browse files Browse the repository at this point in the history
…ws/Linux

Issue #1365
  • Loading branch information
pablosichert committed Nov 22, 2017
1 parent 2d7a23a commit 2219644
Showing 1 changed file with 13 additions and 10 deletions.
23 changes: 13 additions & 10 deletions src/shortcuts/blacklist.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,19 @@ const mods = [
'Meta' // macOS
];

export default Object.entries(Object.assign(...mods.map(mod => ({
[`${mod}+C`]: 'Copy',
[`${mod}+F`]: 'Search',
[`${mod}+H`]: 'History',
[`${mod}+L`]: 'Focus address bar',
[`${mod}+N`]: 'New window',
[`${mod}+T`]: 'New tab',
[`${mod}+V`]: 'Paste',
[`${mod}+W`]: 'Close tab'
})))).reduce((blacklist, pair) => {
export default Object.entries({
'Alt+Spacebar': 'Windows window menu',
...Object.assign(...mods.map(mod => ({
[`${mod}+C`]: 'Copy',
[`${mod}+F`]: 'Search',
[`${mod}+H`]: 'History',
[`${mod}+L`]: 'Focus address bar',
[`${mod}+N`]: 'New window',
[`${mod}+T`]: 'New tab',
[`${mod}+V`]: 'Paste',
[`${mod}+W`]: 'Close tab'
})))
}).reduce((blacklist, pair) => {
const [key, value] = pair;

blacklist[key.toUpperCase()] = value;
Expand Down

0 comments on commit 2219644

Please sign in to comment.