Add keyboard shortcuts to action buttons

Just run and stop button have keys assigned for now.
This commit is contained in:
David Lechner
2020-12-10 21:37:21 -06:00
parent 113243828f
commit 0cf3aad910
9 changed files with 54 additions and 12 deletions
+2 -1
View File
@@ -12,7 +12,8 @@ import replIcon from './images/repl.svg';
type StateProps = Pick<ActionButtonProps, 'enabled'>;
type DispatchProps = Pick<ActionButtonProps, 'onAction'>;
type OwnProps = Pick<ActionButtonProps, 'id'>;
type OwnProps = Pick<ActionButtonProps, 'id'> &
Pick<ActionButtonProps, 'keyboardShortcut'>;
const mapStateToProps = (state: RootState): StateProps => ({
enabled: