diff --git a/client/components/App.vue b/client/components/App.vue index b136874f..ddd537a1 100644 --- a/client/components/App.vue +++ b/client/components/App.vue @@ -51,6 +51,7 @@ export default { Mousetrap.bind("esc", this.escapeKey); Mousetrap.bind("alt+u", this.toggleUserList); Mousetrap.bind("alt+s", this.toggleSidebar); + Mousetrap.bind("alt+m", this.toggleMentions); // Make a single throttled resize listener available to all components this.debouncedResize = throttle(() => { @@ -72,6 +73,7 @@ export default { Mousetrap.unbind("esc", this.escapeKey); Mousetrap.unbind("alt+u", this.toggleUserList); Mousetrap.unbind("alt+s", this.toggleSidebar); + Mousetrap.unbind("alt+m", this.toggleMentions); window.removeEventListener("resize", this.debouncedResize); clearTimeout(this.dayChangeTimeout); @@ -98,6 +100,9 @@ export default { return false; }, + toggleMentions() { + eventbus.emit("mentions:toggle"); + }, msUntilNextDay() { // Compute how many milliseconds are remaining until the next day starts const today = new Date(); diff --git a/client/components/Windows/Help.vue b/client/components/Windows/Help.vue index 8015bbf8..95067dff 100644 --- a/client/components/Windows/Help.vue +++ b/client/components/Windows/Help.vue @@ -189,6 +189,16 @@ +
+
+ Alt M + M +
+
+

Toggle recent mentions popup.

+
+
+
Esc