From dfb83aff53630220bd060120905d68498014b65d Mon Sep 17 00:00:00 2001 From: Nick Krichevsky Date: Thu, 5 Mar 2015 17:20:33 -0500 Subject: [PATCH] Add window switching via pressing the enter key, resolves #16 --- popup.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/popup.js b/popup.js index 7e7ad49..29b0c04 100644 --- a/popup.js +++ b/popup.js @@ -648,6 +648,9 @@ document.addEventListener('DOMContentLoaded', function() { if (tabKeyIndex>=0){ tabList[tabKeyIndex].click(); } + else if (tabKeyIndex==-1){ + windowList[windowKeyIndex].querySelector('span.textContent').click(); + } else if (mainList.classList.contains('searching') && tabKeyIndex===-2){ createTabList(mainList, 0)[0].click(); }