Skip to content

Commit e8eb244

Browse files
authored
Merge pull request #202 from Sienci-Labs/MI-825-Keyboard-Shortcuts-Unresponsive
Keyboard Shortcuts Unresponsive
2 parents 2cc9603 + 6ab2dbe commit e8eb244

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/app/widgets/Location/index.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,8 @@ class LocationWidget extends PureComponent {
8686

8787
pubsubTokens = [];
8888

89+
workspaceSelectRef = React.createRef();
90+
8991
subscribe() {
9092
const tokens = [
9193
pubsub.subscribe('jogSpeeds', (msg, speeds) => {
@@ -689,9 +691,11 @@ class LocationWidget extends PureComponent {
689691
className={styles.workspaceInput}
690692
onChange={(selection) => {
691693
controller.command('gcode', selection.value);
694+
this.workspaceSelectRef.current.blur();
692695
}}
693696
name="workspace"
694697
options={gcodes}
698+
ref={this.workspaceSelectRef}
695699
/>
696700
</Widget.Controls>
697701
</Widget.Header>

0 commit comments

Comments
 (0)