Skip to content

Commit

Permalink
Merge pull request #37069 from bernhardoj/fix/36923-cant-save-workspa…
Browse files Browse the repository at this point in the history
…ce-name
  • Loading branch information
francoisl authored Mar 4, 2024
2 parents cb45bb2 + e892ac3 commit f55b779
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/components/OptionsSelector/BaseOptionsSelector.js
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,11 @@ class BaseOptionsSelector extends Component {
// Unregister the shortcut before registering a new one to avoid lingering shortcut listener
this.unSubscribeFromKeyboardShortcut();
if (this.props.isFocused) {
this.subscribeActiveElement();
this.subscribeToEnterShortcut();
this.subscribeToCtrlEnterShortcut();
} else {
this.unSubscribeActiveElement();
}
}

Expand Down

0 comments on commit f55b779

Please sign in to comment.