summaryrefslogtreecommitdiffstats
path: root/webapp/components/navbar_dropdown.jsx
diff options
context:
space:
mode:
authorDavid Lu <david.lu@hotmail.com>2016-05-16 06:45:54 -0400
committerJoram Wilander <jwawilander@gmail.com>2016-05-16 06:45:54 -0400
commit6363fc5b7f875d3a214f738e883fa0916d45a845 (patch)
tree786cd420dd25a9b9d1051f1db6e3002b38ed9573 /webapp/components/navbar_dropdown.jsx
parent5631a949acf30c33639f29627ad24c7b783b7260 (diff)
downloadchat-6363fc5b7f875d3a214f738e883fa0916d45a845.tar.gz
chat-6363fc5b7f875d3a214f738e883fa0916d45a845.tar.bz2
chat-6363fc5b7f875d3a214f738e883fa0916d45a845.zip
Added preventDefault to suppress browser-specific shortcuts (#2995)
Diffstat (limited to 'webapp/components/navbar_dropdown.jsx')
-rw-r--r--webapp/components/navbar_dropdown.jsx1
1 files changed, 1 insertions, 0 deletions
diff --git a/webapp/components/navbar_dropdown.jsx b/webapp/components/navbar_dropdown.jsx
index 162841f32..68ea625f8 100644
--- a/webapp/components/navbar_dropdown.jsx
+++ b/webapp/components/navbar_dropdown.jsx
@@ -71,6 +71,7 @@ export default class NavbarDropdown extends React.Component {
}
openAccountSettings(e) {
if ((e.ctrlKey || e.metaKey) && e.shiftKey && e.keyCode === Constants.KeyCodes.A) {
+ e.preventDefault();
this.setState({showUserSettingsModal: true});
}
}