Add window switching via pressing the enter key, resolves #16

This commit is contained in:
Nick Krichevsky 2015-03-05 17:20:33 -05:00
parent 99bb9a5e9e
commit dfb83aff53

View file

@ -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();
}