Tune up logic for launching developer settings
- Don't bother to return false, event.preventDefault() is enough - Don't respond to cmd-shift, only ctrl-shift (cmd-shift was a workaround for OS X, but it works fine on OS X if we use onMouseUp instead of onClick)
This commit is contained in:
parent
302a1029bd
commit
e9fdcd1094
1 changed files with 1 additions and 2 deletions
|
@ -21,10 +21,9 @@ var drawerImageStyle = { //@TODO: remove this, img should be properly scaled onc
|
|||
|
||||
var Drawer = React.createClass({
|
||||
handleLogoClicked: function(event) {
|
||||
if (event.shiftKey && (event.ctrlKey || event.metaKey)) {
|
||||
if (event.ctrlKey && event.shiftKey) {
|
||||
window.location.href = 'index.html?developer'
|
||||
event.preventDefault();
|
||||
return false;
|
||||
}
|
||||
},
|
||||
getInitialState: function() {
|
||||
|
|
Loading…
Add table
Reference in a new issue