Addresses #3: Add option to hide topic list (esc)
This commit is contained in:
parent
423332b68d
commit
37f5e91a49
@ -71,6 +71,9 @@ function onKeyPressed(event) {
|
|||||||
case 17: // ctrl
|
case 17: // ctrl
|
||||||
toggleTopicList();
|
toggleTopicList();
|
||||||
break;
|
break;
|
||||||
|
case 27: // esc
|
||||||
|
hideTopicList();
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -169,3 +172,9 @@ function toggleTopicList() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function hideTopicList() {
|
||||||
|
if (topicList.style.visibility === 'visible') {
|
||||||
|
topicList.style.visibility = 'hidden';
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user