From aed38e32bd35e7e0b0caa8bc17aebf9f4726ebac Mon Sep 17 00:00:00 2001 From: LenAnderson Date: Sun, 24 Dec 2023 00:20:47 +0000 Subject: [PATCH] add ctrl-click to edit QR --- public/scripts/extensions/quick-reply/src/QuickReply.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/public/scripts/extensions/quick-reply/src/QuickReply.js b/public/scripts/extensions/quick-reply/src/QuickReply.js index 705db305b..1e67b2dfc 100644 --- a/public/scripts/extensions/quick-reply/src/QuickReply.js +++ b/public/scripts/extensions/quick-reply/src/QuickReply.js @@ -79,7 +79,11 @@ export class QuickReply { menu.show(evt); } }); - root.addEventListener('click', ()=>{ + root.addEventListener('click', (evt)=>{ + if (evt.ctrlKey) { + this.showEditor(); + return; + } if (this.message?.length > 0 && this.onExecute) { this.onExecute(this); }