diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2021-02-20 16:16:19 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2021-02-20 16:16:19 +0900 |
| commit | 8668bc2609e82f64984b8a347a207668e3e4765b (patch) | |
| tree | a41740a124774c58e96dfe3445bb46d1665ca8be /src/client/components/note.vue | |
| parent | Improve widget performance (diff) | |
| download | sharkey-8668bc2609e82f64984b8a347a207668e3e4765b.tar.gz sharkey-8668bc2609e82f64984b8a347a207668e3e4765b.tar.bz2 sharkey-8668bc2609e82f64984b8a347a207668e3e4765b.zip | |
右クリックでリアクションピッカーを開くオプション
Diffstat (limited to 'src/client/components/note.vue')
| -rw-r--r-- | src/client/components/note.vue | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/client/components/note.vue b/src/client/components/note.vue index d532289857..24c374869d 100644 --- a/src/client/components/note.vue +++ b/src/client/components/note.vue @@ -731,7 +731,13 @@ export default defineComponent({ }; if (isLink(e.target)) return; if (window.getSelection().toString() !== '') return; - os.contextMenu(this.getMenu(), e).then(this.focus); + + if (this.$store.state.useReactionPickerForContextMenu) { + e.preventDefault(); + this.react(); + } else { + os.contextMenu(this.getMenu(), e).then(this.focus); + } }, menu(viaKeyboard = false) { |