Coder Social home page Coder Social logo

Comments (10)

ssborbis avatar ssborbis commented on June 30, 2024 1

Maybe the easiest solution would be to disable the native context menu completely on single-right-clicks and instead force it to only use the selected method dedicated to it, i.e. Shift, Alt, Ctrl, Double-Click, ... ?

I'm looking to see if there's a setting combination that will get you what you're looking for. Just for a sanity check, you want to be able to hold the right mouse button down for a certain length of time ( say 1 second ) and get no menus, (browser UI context menu or this addon's quick menu). Moving the default context menu to a double-click is already an option, but like you said, there doesn't seem to be a setting to then cancel opening the qm.

from contextsearch-web-ext.

ssborbis avatar ssborbis commented on June 30, 2024 1

PS: Made a small donation. Thank you again for this wonderful Addon! ... I am using it constantly.

Thank you so much! ... for the donation and the consistent feedback and suggestions. This addon is only what it is because of users like you who are willing to take the time to report bugs and make feature requests. Cheers!

from contextsearch-web-ext.

ssborbis avatar ssborbis commented on June 30, 2024

But here comes one little problem: Is there a way to use ContextSearch on other extension-pages too?

I'm guessing that functionality is disabled due to security concerns. As far as I know, you cannot inject code into another addon's pages, so the only option left to this addon is the searching via the context menu. It would be nice if there were a way, but the webextensions API is somewhat limited, so I'm afraid you'll have to continue relying on the context menu as a fallback.

from contextsearch-web-ext.

ThomasSeeker avatar ThomasSeeker commented on June 30, 2024

Thank you for your fast answer, ssborbis!

Ok, I understand. That's a pitty. So I have to stay with the native context-menu on other extension-pages.

But since its suppression/disabling does not work on those pages anyway ... is there a way to disable or delay it at least on regular pages? ... Right now it pops up after 1 second. After 10 seconds or so it couldn't be triggered by accident anymore. (Right now this still happens, also because I use the right mouse button for gestures.)

from contextsearch-web-ext.

ssborbis avatar ssborbis commented on June 30, 2024

But since its suppression/disabling does not work on those pages anyway ... is there a way to disable or delay it at least on regular pages? ... Right now it pops up after 1 second. After 10 seconds or so it couldn't be triggered by accident anymore. (Right now this still happens, also because I use the right mouse button for gestures.)

Just so we're on the same page, are you wanting to completely disable the quick menu? Also, if the menu is configured properly, you shouldn't see both the context menu and the quick menu at the same time, from the same right-click. It's a bit tricky because of how the mouse events work on different browsers, but there are some settings to hopefully prevent the double-menus on any system. Can you give a few more details about what exactly is happening, and what you want it to do differently?

from contextsearch-web-ext.

ThomasSeeker avatar ThomasSeeker commented on June 30, 2024

Thank you ssborbis, for looking into this!

I am talking about the "Quick Menu" aka "Popup Menu".

My settings are: Open it anywhere with a Right-Mouse-Click.

And on the settings page it says: "Hold right button ~1s and release for default context menu". ... and this is exactly what is happening! ... I never see both at the same time. All is working accordingly.

But what I would really like to have, would be the "1s" be increased to "5s".

The reason is: With my new hardware the Quick-Menu opens so quick :-) , that I made it my primary main Context Menu. And I actually don't really need the native one any longer. ... And now the hold-down-function of the right mouse-button gets freed for certain mouse gestures, which I would like to use. ...

And with them the native context-menu opening after 1s is annoying.

I already searched the web for firefox-addons or other ways to achieve this, but did not have any luck so far.

Could you help out with this, ssborbis?

from contextsearch-web-ext.

ssborbis avatar ssborbis commented on June 30, 2024

But what I would really like to have, would be the "1s" be increased to "5s".

Ah. Yeah, I think there's a setting for that. Lemme check...

Looking at the code, I think the setting quickMenuHoldTimeout (CS Options -> Advanced) is doing double-duty for both the HOLD method and the CLICK method. Try changing that to a higher value. I'll test also, but my results may not match up with yours.

from contextsearch-web-ext.

ThomasSeeker avatar ThomasSeeker commented on June 30, 2024

Ok, I tried this here.

To describe more detailed: Here on my system 2 things can happen on the releasing of the right mouse button after a single click.

  1. If I hold the mouse button down for a short time and then release it, the Quick Menu opens.

  2. If I hold the mouse button down for a bit longer and then release it, the native menu opens. ... Even though I have set it to open with other methods (I tried several others).

Now if I increase the quickMenuHoldTimeout ... it only changes the time when the 1. behavior shifts to the 2.. ...

So there is no time-window opening, in which I could perform a hold-down-mouse-gesture without opening a menu.

Maybe the easiest solution would be to disable the native context menu completely on single-right-clicks and instead force it to only use the selected method dedicated to it, i.e. Shift, Alt, Ctrl, Double-Click, ... ?

Would this be possible?

from contextsearch-web-ext.

ThomasSeeker avatar ThomasSeeker commented on June 30, 2024

Firstly: Thank you ssborbis for looking into this again! :-)

I too, looked into this again just now. And very unexpectedly I found a solution. That is:
If I set ui.context_menus.after_mouseup to false in about:config ... the native/default context menu does not appear anymore at all after holding down the right button for any amount of time. It only appears after the designated double click (or similar). ... Now the hold-down-button is finally freed to be used in mouse-gestures. ... Wonderful!

Sorry for not having checked the ui.context_menus.after_mouseup in the first place and causing all that noise. :-/

from contextsearch-web-ext.

ThomasSeeker avatar ThomasSeeker commented on June 30, 2024

PS: Made a small donation. Thank you again for this wonderful Addon! ... I am using it constantly.

from contextsearch-web-ext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.