Add moving down from search box

This commit is contained in:
Nick Krichevsky 2015-02-20 09:12:52 -05:00
parent 760e7dcd49
commit d1c4b9f2b6
2 changed files with 9 additions and 1 deletions

View file

@ -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 {

View file

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