From b27d51d512bbb73fb322d5613dafa299843f05b9 Mon Sep 17 00:00:00 2001 From: Saturnino Abril Date: Sun, 23 Jul 2017 14:42:04 +0800 Subject: [PLT-7051] Fix hide/show for CMD/CTRL + Shift + A keyboard shortcut (#6979) * fix hide/show for CMD/CTRL + Shift + A keyboard shortcut * simplify setting value of show --- webapp/components/user_settings/user_settings_modal.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webapp/components/user_settings/user_settings_modal.jsx') diff --git a/webapp/components/user_settings/user_settings_modal.jsx b/webapp/components/user_settings/user_settings_modal.jsx index bbb4d37f4..665dbed68 100644 --- a/webapp/components/user_settings/user_settings_modal.jsx +++ b/webapp/components/user_settings/user_settings_modal.jsx @@ -114,7 +114,7 @@ class UserSettingsModal extends React.Component { handleKeyDown(e) { if (Utils.cmdOrCtrlPressed(e) && e.shiftKey && e.keyCode === Constants.KeyCodes.A) { this.setState({ - show: true + show: !this.state.show }); } } -- cgit v1.2.3-1-g7c22