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