Bind a keyboard to show new status
This commit is contained in:
parent
a842cadd15
commit
642b0be0b2
1 changed files with 3 additions and 0 deletions
|
@ -67,6 +67,9 @@ const Timeline = {
|
||||||
document.addEventListener('visibilitychange', this.handleVisibilityChange, false)
|
document.addEventListener('visibilitychange', this.handleVisibilityChange, false)
|
||||||
this.unfocused = document.hidden
|
this.unfocused = document.hidden
|
||||||
}
|
}
|
||||||
|
window.addEventListener('keydown', e => {
|
||||||
|
if (e.key === '.') this.showNewStatuses()
|
||||||
|
})
|
||||||
},
|
},
|
||||||
destroyed () {
|
destroyed () {
|
||||||
window.removeEventListener('scroll', this.scrollLoad)
|
window.removeEventListener('scroll', this.scrollLoad)
|
||||||
|
|
Loading…
Reference in a new issue