Fix keyboard shortcuts
This commit is contained in:
@ -36,13 +36,13 @@ class Layout extends React.Component {
|
||||
|
||||
@keydown(['/', 't'])
|
||||
search() {
|
||||
if (!this.props.user) return;
|
||||
// if (!this.props.user) return;
|
||||
_.defer(() => browserHistory.push('/search'));
|
||||
}
|
||||
|
||||
@keydown(['d'])
|
||||
dashboard() {
|
||||
if (!this.props.user) return;
|
||||
// if (!this.props.user) return;
|
||||
_.defer(() => browserHistory.push('/'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user