Add window switching via pressing the enter key, resolves #16
This commit is contained in:
parent
99bb9a5e9e
commit
dfb83aff53
3
popup.js
3
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue