Skip to content

Commit

Permalink
Fix enter triggered when composing (fix #2738)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Dec 21, 2021
1 parent a8cd53c commit 658c513
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/launch-bar/LaunchBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,10 @@ export default Vue.extend({
methods: {
getOnlineActions: lodash.debounce(getOnlineActions, 200),
getActions,
async handleEnter() {
async handleEnter(e: KeyboardEvent) {
if (e.isComposing) {
return
}
if (this.actions.length > 0 && !this.isHistory) {
const [first] = this.actions as LaunchBarAction[]
if (first.explicitSelect === false) {
Expand Down

0 comments on commit 658c513

Please sign in to comment.