Add moving down from search box
This commit is contained in:
parent
760e7dcd49
commit
d1c4b9f2b6
|
@ -36,7 +36,7 @@ li.tab > span.tabName{
|
|||
box-sizing: border-box;
|
||||
position: relative;
|
||||
}
|
||||
li.tab:hover{
|
||||
li.tab:hover,li.tab.keyHover{
|
||||
background-color:#B3B3B3;
|
||||
}
|
||||
.noselect {
|
||||
|
|
8
popup.js
8
popup.js
|
@ -189,6 +189,8 @@ function setHeights(){
|
|||
document.addEventListener('DOMContentLoaded', function() {
|
||||
var mainList = document.getElementById("windows");
|
||||
var filterInput = document.getElementById("search");
|
||||
var windowKeyIndex = 0;
|
||||
var tabKeyIndex = 0;
|
||||
getWindows(mainList,setHeights);
|
||||
filterInput.addEventListener('input', function(event){
|
||||
search(filterInput.value,function(windows){
|
||||
|
@ -196,4 +198,10 @@ document.addEventListener('DOMContentLoaded', function() {
|
|||
getWindows(mainList,windows,setHeights);
|
||||
});
|
||||
});
|
||||
window.addEventListener('keydown', function(e){
|
||||
if (document.activeElement===filterInput){
|
||||
filterInput.blur();
|
||||
mainList.querySelector('li.window').querySelector('ul.tabs').childNodes[0].classList.add('keyHover');
|
||||
}
|
||||
});
|
||||
});
|
Loading…
Reference in a new issue