From 879f9648d2b65db85db207e615dfd15912da9e6f Mon Sep 17 00:00:00 2001 From: Robin Ward Date: Sat, 29 Aug 2015 10:43:28 -0400 Subject: [PATCH] FIX: Keyboard shortcuts for menu panels were broken --- .../javascripts/discourse/lib/keyboard-shortcuts.js.es6 | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 index 7485240c27a..d7ab82cf89e 100644 --- a/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 +++ b/app/assets/javascripts/discourse/lib/keyboard-shortcuts.js.es6 @@ -169,16 +169,15 @@ export default { }, showSearch() { - this.container.lookup('controller:header').send('toggleSearchMenu'); + this.container.lookup('controller:header').toggleProperty('searchVisible'); }, toggleHamburgerMenu() { - this.container.lookup('controller:header').send('toggleHamburgerMenu'); + this.container.lookup('controller:header').toggleProperty('hamburgerVisible'); }, showCurrentUser() { - $('#current-user').click(); - $('#user-dropdown a:first').focus(); + this.container.lookup('controller:header').toggleProperty('userMenuVisible'); }, showHelpModal() {