aboutsummaryrefslogtreecommitdiff
path: root/src/components/timeline/timeline.js
diff options
context:
space:
mode:
authorEdijs <iamedijs@hotmail.com>2019-02-17 14:31:13 -0700
committerEdijs <iamedijs@hotmail.com>2019-02-17 14:31:13 -0700
commit642b0be0b2c82e7c9c1bb45c50e60b2d3b4090f8 (patch)
tree8dc229a4fb1050e7f517d20da13ce264365745a8 /src/components/timeline/timeline.js
parenta842cadd155269d2a46bc3e342eda77e5fc4a773 (diff)
Bind a keyboard to show new status
Diffstat (limited to 'src/components/timeline/timeline.js')
-rw-r--r--src/components/timeline/timeline.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/components/timeline/timeline.js b/src/components/timeline/timeline.js
index 85e0a055..a8a3495a 100644
--- a/src/components/timeline/timeline.js
+++ b/src/components/timeline/timeline.js
@@ -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)