mirror of
https://github.com/wassname/talk.git
synced 2026-07-11 05:50:17 +08:00
Correcting bug in prev keyboard shortcut.
This commit is contained in:
@@ -36,7 +36,7 @@ class ModerationContainer extends Component {
|
||||
({...prevState, selectedIndex: prevState.selectedIndex + 1}))
|
||||
);
|
||||
key('k', () => this.setState(prevState =>
|
||||
({...prevState, selectedIndex: prevState.selectedIndex > 0 ? prevState.selectedIndex + 1 : selectedIndex}))
|
||||
({...prevState, selectedIndex: prevState.selectedIndex > 0 ? prevState.selectedIndex - 1 : selectedIndex}))
|
||||
);
|
||||
key('r', () => this.moderate(false));
|
||||
key('t', () => this.moderate(true));
|
||||
|
||||
Reference in New Issue
Block a user