From f1bcc0a24b171f5045ae1501cdac44fb54d177ce Mon Sep 17 00:00:00 2001 From: Deathamns Date: Sun, 18 Jan 2015 08:12:39 +0100 Subject: [PATCH] Focus window when activating element-picker --- src/js/element-picker.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/js/element-picker.js b/src/js/element-picker.js index f43761b4a..20eeff00d 100644 --- a/src/js/element-picker.js +++ b/src/js/element-picker.js @@ -986,6 +986,10 @@ var startPicker = function(details) { localMessager.send({ what: 'elementPickerArguments' }, startPicker); +// So the shortcuts will be usable in Firefox +// (also triggers the hiding of the popover in Safari) +window.focus(); + /******************************************************************************/ // https://www.youtube.com/watch?v=sociXdKnyr8