Disable mouse action override
I would love to be able to use a browser extension like DeepL, instead of opening a separate window for translation - it is soooo much sloooower :(
Unfortunately, at the moment all actions related to selecting text or clicking on a word are taken over by Lute.
Would it be possible to turn Lute's mouse actions on and off under some keyboard shortcut? Or even better as long as some key combination is pressed, e.g. alt+shift disable all Lute's actions hooked up to the mouse?
I found a workaround, but it is not pretty:
let style = document.createElement('style');
style.innerHTML = '*{ user-select: auto !important; }';
document.body.appendChild(style);
Yes I agree the popup is slow!
if we disable all mouse things, then some functions may not work; I’m not sure which ones are required va optional. Can you clarify which things you don’t want to happen?
This script that I pasted earlier works for me - you may check DeepL for Chrome with and without applying this script.
Basically, allowing text selection seems to have solved my problem - but I'm not a front-end developer and, as I said, it's not a very pretty solution because the text underneath is also selected by the Lute.
Thanks will do!
On Mon, Jan 15, 2024 at 2:30 AM PsychoThinker @.***> wrote:
This script that I pasted earlier works for me - you may check DeepL for Chrome https://www.deepl.com/en/chrome-extension with and without applying this script.
Basically, allowing text selection seems to have solved my problem - but I'm not a front-end developer and, as I said, it's not a very pretty solution because the text underneath is also selected by the Lute.
— Reply to this email directly, view it on GitHub https://github.com/jzohrab/lute-v3/issues/130#issuecomment-1891049628, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMPWDLHNDESLII2QOOX2TDYOQW6LAVCNFSM6AAAAABB2E2ZP2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJRGA2DSNRSHA . You are receiving this because you commented.Message ID: @.***>