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>
Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
  • Loading branch information
Julien Veyssier authored and nextcloud-command committed Dec 7, 2021
1 parent 1088313 commit 92bc483
Show file tree
Hide file tree
Showing 11 changed files with 15 additions and 13 deletions.
8 changes: 4 additions & 4 deletions js/editor-rich.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/editor-rich.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/files.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/files.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/public.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/public.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/text.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/viewer.js.map

Large diffs are not rendered by default.

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 92bc483

Please sign in to comment.