Skip to content

Commit

Permalink
improves hotkeys for stepper; fixes #1751
Browse files Browse the repository at this point in the history
  • Loading branch information
martin-henz committed Jun 21, 2021
1 parent e6d6ceb commit 46b9480
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/commons/sideContent/SideContentSubstVisualizer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ const SubstDefaultText = () => {
b: Move to the previous step
<br />
<br />
Note that these shortcuts are only active when the browser focus is on
this tab (click on or above the explanation text).
Note that these shortcuts are only active when the browser focus is on this tab (click on or
above the explanation text).
</div>
</div>
);
Expand Down Expand Up @@ -99,7 +99,7 @@ class SideContentSubstVisualizer extends React.Component<SubstVisualizerProps, S
PREVIOUS_STEP: () => {},
LAST_STEP: () => {}
};
// console.log(this.props.content);
// console.log(this.props.content);

return (
<HotKeys keyMap={substKeyMap} handlers={substHandlers}>
Expand Down Expand Up @@ -258,7 +258,7 @@ class SideContentSubstVisualizer extends React.Component<SubstVisualizerProps, S
private stepNext = () => {
const lastStepValue = this.props.content.length;
if (this.state.value !== lastStepValue) {
this.sliderShift(this.state.value + 1);
this.sliderShift(this.state.value + 1);
}
};

Expand Down

0 comments on commit 46b9480

Please sign in to comment.