Addresses #3: Add option to hide topic list (esc)

This commit is contained in:
Knoch 2020-03-11 10:55:50 +01:00
parent 423332b68d
commit 37f5e91a49

View File

@ -71,6 +71,9 @@ function onKeyPressed(event) {
case 17: // ctrl
toggleTopicList();
break;
case 27: // esc
hideTopicList();
break;
}
}
@ -169,3 +172,9 @@ function toggleTopicList() {
}
}
}
function hideTopicList() {
if (topicList.style.visibility === 'visible') {
topicList.style.visibility = 'hidden';
}
}