Bind a keyboard to show new status

This commit is contained in:
Edijs 2019-02-17 14:31:13 -07:00
parent a842cadd15
commit 642b0be0b2
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ const Timeline = {
document.addEventListener('visibilitychange', this.handleVisibilityChange, false)
this.unfocused = document.hidden
}
window.addEventListener('keydown', e => {
if (e.key === '.') this.showNewStatuses()
})
},
destroyed () {
window.removeEventListener('scroll', this.scrollLoad)