右クリックでリアクションピッカーを開くオプション

This commit is contained in:
syuilo 2021-02-20 16:16:19 +09:00
parent 65fbca47f9
commit 8668bc2609
7 changed files with 29 additions and 3 deletions

View file

@ -741,7 +741,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) {