Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Fix #2107, remove/comment-out hotkey
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb committed Jan 18, 2017
1 parent e12ecd7 commit 5148017
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions addon/lib/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ const { watchFunction } = require("./errors");
const { Cu } = require("chrome");
const req = require("./req");
const { setTimeout, clearTimeout } = require("sdk/timers");
const { Hotkey } = require("sdk/hotkeys");
const { AddonManager } = require('resource://gre/modules/AddonManager.jsm');
const { addXULStylesheet } = require("./xulcss");
const { storage } = require("sdk/simple-storage");
Expand Down Expand Up @@ -86,19 +85,16 @@ function takeShot(source) {
}
}

Hotkey({
/*
Disabled because of conflicts with non-English keyboards:
require("sdk/hotkeys").Hotkey({
combo: "accel-alt-control-c",
onPress: watchFunction(function() {
takeShot("keyboard-shortcut");
})
});

Hotkey({
combo: "accel-alt-control-x",
onPress: watchFunction(function() {
throw new Error("Client-side exception test");
})
});
*/

contextMenu.Item({
label: "Create Page Shot",
Expand Down

0 comments on commit 5148017

Please sign in to comment.