You are not logged in.

#1 2020-02-11 05:03:43

kmartin
Member
Registered: 2016-04-27
Posts: 17

[solved] Firefox right click menu selects the top option and runs it.

The problem is with right mouse click  the selection arrow is over the top choice and that is quickly selected. I'm not used to this and don't care for it.

I have been trying to solve this since I updated

[2020-01-22T21:20:11-0700] [ALPM] upgraded firefox (72.0.1-1 -> 72.0.2-1)
[2020-01-22T21:20:11-0700] [ALPM] upgraded firefox-i18n-zh-tw (72.0.1-1 -> 72.0.2-1)

I found This forum search
I fallowed these steps...

/home/martin/.mozilla/firefox/iyd197o0.default-release/chrome/userChrome.css 

edit: and added

#contentAreaContextMenu
 {
    margin-left: 4px;
}

Thanks in advance

Last edited by kmartin (2020-03-03 04:26:21)


... it seemed like a good idea ...

Offline

#2 2020-02-11 18:50:43

kaptenen
Member
Registered: 2009-12-06
Posts: 287
Website

Re: [solved] Firefox right click menu selects the top option and runs it.

Have you been using userChrome.css or userContent.css before? if not, please make sure that toolkit.legacyUserProfileCustomizations.stylesheets is set to true in about:config (and restart Firefox after).

Offline

#3 2020-02-11 19:50:44

kmartin
Member
Registered: 2016-04-27
Posts: 17

Re: [solved] Firefox right click menu selects the top option and runs it.

Thanks @kaptenen for your reply. I have not used these .css settings before. The

 toolkit.legacyUserProfileCustomizations.stylesheets

setting was mentioned in the article and yes I set it to true.
I have noticed that this behavior does not occur in the about:config window. fwiw...
I'm just learning about much of this and don't know what info to look into.
Thanks again.

edit: yes logedout/in and restarted Firefox many times.

edit 2/14/2020 : I found that holding alt-right click for a second or so reverts to where the cursor does not automatically select the top menu item. but seams to be temporary.

Last edited by kmartin (2020-02-15 05:11:26)


... it seemed like a good idea ...

Offline

#4 2020-02-17 20:19:31

jim002
Member
Registered: 2020-02-17
Posts: 39

Re: [solved] Firefox right click menu selects the top option and runs it.

try this:
ui.context_menus.after_mouseup;true

Offline

#5 2020-02-18 04:29:35

kmartin
Member
Registered: 2016-04-27
Posts: 17

Re: [solved] Firefox right click menu selects the top option and runs it.

Thanks @jim002 for your suggestion, and I am honored that your first post was an effort to help little old me.
ui.context_menus.after_mouseup
set to true does solve the auto select part of the problem and does not revert as the alt-rightclick thing I stumbled on above. I had allso found that setting the userChrome.css

#contentAreaContextMenu
 {
    margin-left: 4px;
}

to 30 places the selection cursor outside the box.
I like your option better.
Thanks


... it seemed like a good idea ...

Offline

#6 2020-02-19 13:06:48

cirrus
Member
From: Glasgow Scotland
Registered: 2012-08-24
Posts: 341
Website

Re: [solved] Firefox right click menu selects the top option and runs it.

Plesse mark thread as solved if you are now satisfied.

Regards

Offline

#7 2020-02-20 07:52:17

kmartin
Member
Registered: 2016-04-27
Posts: 17

Re: [solved] Firefox right click menu selects the top option and runs it.

Thanks @cirrus for your reminder to mark a thread as solved, when solved.
While some of the brokenness has been moved it is not solved.
In about:config Picking up the mouse pointer, setting

ui.context_menus.after_mouseup

= true still leaves the  cursor over the "back" option in the menu.
That's not correct. And the setting in #contentAreaContextMenu of say 30px is just a kluge.
In post #3 edit 2/14/2020 : I found that holding alt-right click for a second or so reverts to where the cursor does not automatically select the top menu item. But seems to be temporary.
But the cursor position is correct. The question is What does atl + right click do to Firefox to remediate the set behavior?
Sorry I don't have the skill to figure this out. I will keep trying to as it is not solved.
Thankfully it does not seem to be of great concern to others so it may be an issue with my set-up, rather vanilla however, old but simple xfce4.
I updated FF et.al. tonight to: [2020-02-19T22:53:43-0700] [ALPM] upgraded firefox (73.0-1 -> 73.0.1-1)  rebooted... no change.
at least it is better.
edit 2/20/2020: addid links to screen shots for clarity.
edit 3/2/2020" Down graded Firefox to firefox-72.0.1-1 and remaned chrome folder. problem solved. Then Firefox updated to 73.0.1-1 and all's well.
solved by upgrade.

Last edited by kmartin (2020-03-03 04:22:11)


... it seemed like a good idea ...

Offline

#8 2020-04-10 15:36:07

vanja_z
Member
Registered: 2012-04-11
Posts: 43

Re: [solved] Firefox right click menu selects the top option and runs it.

jim002 wrote:

try this:
ui.context_menus.after_mouseup;true

Jim thank you so much for this! This resolved the issue for me completely and allowed me to discover why it was happening in the first place. I realize this is an old thread but this might help someone else (I really feel like a newbie now).

By default, FIrefox opens the context menu on mouse down, then mouse up selects the active entry. So if I click (mouse down followed by up) without moving the cursor, no entry will be active and the context menu will pop up as I expect. However if I make even the slightest movement between mouse down and up, even a few pixels (I'm not sure what the margin is) the cursor will drift a little bit selecting the first entry and on mouse up this will be selected!

I am not going to enable ui.context_menus.after_mouseup but instead I will be more careful with my mouse movements now that I understand what I have been doing wrong for 10 years... I'm not sure if OP was in the same boat as me but given the title of the thread, others might find this helps if they are searching for "Firefox right-click selects and runs" issue.

Offline

Board footer

Powered by FluxBB