Skip to content

Commit

Permalink
Hide menu and keep focus when using menubar popover items
Browse files Browse the repository at this point in the history
Signed-off-by: Julien Veyssier <eneiluj@posteo.net>
  • Loading branch information
Julien Veyssier committed Dec 7, 2021
1 parent 1088313 commit 7aef008
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/MenuBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@
<ActionButton v-if="icon.class && isHiddenInMenu($index)"
:key="icon.class"
:icon="icon.class"
:close-after-click="true"
@click="clickIcon(commands, icon)">
{{ icon.label }}
</ActionButton>
Expand Down Expand Up @@ -238,6 +239,7 @@ export default {
})
},
clickIcon(commands, icon) {
this.editor.focus()
return icon.action(commands)
},
getWindowWidth(event) {
Expand Down

0 comments on commit 7aef008

Please sign in to comment.