Closed
Bug 107433
Opened 23 years ago
Closed 19 years ago
Make it possible to turn off click-and-hold contextual menu access
Categories
(Core :: XUL, enhancement, P2)
Tracking
()
RESOLVED
FIXED
mozilla1.8.1alpha2
People
(Reporter: bugmail, Assigned: asaf)
References
Details
(Keywords: fixed1.8.1, platform-parity)
Attachments
(2 files, 3 obsolete files)
34.76 KB,
image/jpeg
|
Details | |
2.01 KB,
patch
|
Details | Diff | Splinter Review |
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (Macintosh; U; PPC; en-US; rv:0.9.5) Gecko/20011011
BuildID: 2001101117
A preference should be added to allow Macintosh users to disable click-hold
contextual menu access
Reproducible: Always
Steps to Reproduce:
N/A.
Actual Results: N/A.
Expected Results: N/A.
Other, standard, methods now exist on the Mac platform to access contextual
menus, such as the basic control-click.
There are situations where clicking and holding summons an unwanted contextual menu.
Assigning to Pinkerton per his request in n.p.m.mac.
Assignee: hyatt → pinkerton
Summary: Enable users to disable click-hold contextual menu access → Enable users to disable click-and-hold contextual menu access on Mac OS
Updated•23 years ago
|
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla1.1
Summary: Enable users to disable click-and-hold contextual menu access on Mac OS → Enable disablement of click-and-hold contextual menu access on Mac OS
This should probably be limited to Mac OS versions that implement systemwide
contextual menus. I don't recall offhand when they were introduced (9.0?), but will find
out and amend.
Comment 4•23 years ago
|
||
when you click long on a folder in the personal toolbar, the contextual-menu
will appear and when you close it, the folder is still open and you can open
other ones. They stay open, even if you switch to another app. This doesent
happen, if you open the contextual menu with the ctrl-key.
Comment 5•23 years ago
|
||
"Multiple open folders in the Personal toolbar" is really bug 108470. except for
one page where smfr pointed out that the webpage uses click-hold in dhtml, the
other complaints here are all individual bugs that we should just fix rather
than go round and round arguing about turning this off. *shrug*
Comment 6•23 years ago
|
||
*** Bug 133050 has been marked as a duplicate of this bug. ***
Comment 7•22 years ago
|
||
*** Bug 163287 has been marked as a duplicate of this bug. ***
Comment 9•22 years ago
|
||
*** Bug 177021 has been marked as a duplicate of this bug. ***
Comment 10•21 years ago
|
||
This is extremely annoying. The menu pops up when selecting <select> items, and
at other inopportune time, sometimes making you select an item before dismissing
the menu.
Comment 11•21 years ago
|
||
Yuckola. This stuff is peppered thougout the code with
#ifdef CLICK_HOLD_CONTEXT_MENUS
which is only defined on MacOS. However, it's pretty cinchy to add a pref to
turn it off, and just check it before all the other checks in
nsEventStateManager::CreateClickHoldTimer. I'll attach a patch.
Comment 12•21 years ago
|
||
Comment 13•21 years ago
|
||
Comment on attachment 138300 [details] [diff] [review]
Add the accessibility.clickAndHoldMenu pref to turn off click-and-hold context menus
I'm not advocating this pref, but if you want to implement something like this
it's better to replace the #IFDEFs entirely with the pref.
Comment 14•20 years ago
|
||
This whole "hold mouse down to display the context menu" -feature should be considered a bug:
- It's annoying
- There are already a better way to do it (control-click / right-click)
- It breaks sites where mousedown is used to move layers
- It's a reminiscent of the Netscape Navigator "feature"
- Safari uses control/right-click.
Reporter | ||
Comment 15•20 years ago
|
||
Jerry, does your patch still work? You'll need to request review if you want to
see it checked in.
Comment 16•20 years ago
|
||
*** Bug 258504 has been marked as a duplicate of this bug. ***
Comment 17•20 years ago
|
||
(In reply to comment #15)
> Jerry, does your patch still work? You'll need to request review if you want to
> see it checked in.
See my comment 13.
Comment 18•20 years ago
|
||
*** Bug 294743 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 19•20 years ago
|
||
Taking
Assignee: pinkerton → bugs.mano
Status: ASSIGNED → NEW
Priority: -- → P2
Target Milestone: Future → mozilla1.8beta3
Assignee | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
Summary: Enable disablement of click-and-hold contextual menu access on Mac OS → Enable disablement of click-and-hold contextual menu access
Assignee | ||
Comment 20•20 years ago
|
||
Attachment #138300 -
Attachment is obsolete: true
Attachment #185390 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #185390 -
Flags: review?(jhpedemonte)
Comment 21•20 years ago
|
||
Comment on attachment 185390 [details] [diff] [review]
patch
I don't see the point of tracking the pref, as you really only need to read it
when creating the timer; KillClickHoldTimer only kills created timers ;-)
Attachment #185390 -
Flags: superreview?(neil.parkwaycc.co.uk)
Comment 22•20 years ago
|
||
Comment on attachment 185390 [details] [diff] [review]
patch
I'm also not a big fan of that choice of pref name but then my choice of
ui.click_hold_context_menu is somewhat boring too...
Assignee | ||
Updated•20 years ago
|
Attachment #185390 -
Flags: review?(jhpedemonte) → review-
Assignee | ||
Updated•20 years ago
|
Attachment #185390 -
Flags: review-
Comment 23•19 years ago
|
||
(In reply to comment #14)
> This whole "hold mouse down to display the context menu" -feature should be
considered a bug:
> - It's annoying
> - There are already a better way to do it (control-click / right-click)
> - It breaks sites where mousedown is used to move layers
> - It's a reminiscent of the Netscape Navigator "feature"
> - Safari uses control/right-click.
Have you done any usability testing? Feedback we get from Camino (which doesn't
have this feature) is commonly that "context menus are broken". For many people,
this is the only way they know to get at context menus.
Assignee | ||
Updated•19 years ago
|
Target Milestone: mozilla1.8beta3 → mozilla1.8beta4
Assignee | ||
Comment 24•19 years ago
|
||
Attachment #185390 -
Attachment is obsolete: true
Attachment #190331 -
Flags: superreview?(neil.parkwaycc.co.uk)
Attachment #190331 -
Flags: review?(jhpedemonte)
Updated•19 years ago
|
Summary: Enable disablement of click-and-hold contextual menu access → Turn off click-and-hold contextual menu access
Assignee | ||
Updated•19 years ago
|
Summary: Turn off click-and-hold contextual menu access → Make it possible to turn off click-and-hold contextual menu access
Comment 25•19 years ago
|
||
Comment on attachment 190331 [details] [diff] [review]
patch v2
>+ PRBool bClickHoldContext = PR_TRUE;
>+ bClickHoldContext = nsContentUtils::GetBoolPref("ui.click_hold_context_menus",
>+ bClickHoldContext);
This is going to check the pref every time. What happened to using an
observer?
Comment 26•19 years ago
|
||
Comment on attachment 190331 [details] [diff] [review]
patch v2
Well, I guess if we want to actually have a pref for this, then this code looks
fine.
Attachment #190331 -
Flags: review?(jhpedemonte) → review+
Comment 27•19 years ago
|
||
See also bug 301758, which asks to disable click-and-hold context menus by default.
Comment 28•19 years ago
|
||
Comment on attachment 190331 [details] [diff] [review]
patch v2
>+ PRBool bClickHoldContext = PR_TRUE;
>+ bClickHoldContext = nsContentUtils::GetBoolPref("ui.click_hold_context_menus",
>+ bClickHoldContext);
>+ if (bClickHoldContext)
It seems to me you can write this in one statement i.e.
if (nsContentUtils::GetBoolPref("ui.click_hold_context_menus", PR_TRUE))
Maybe find someone suitable to make a ruling on observing the pref and follow
up as necessary?
Attachment #190331 -
Flags: superreview?(neil.parkwaycc.co.uk) → superreview+
Comment 29•19 years ago
|
||
(In reply to comment #28)
> Maybe find someone suitable to make a ruling on observing the pref and follow
> up as necessary?
Neil, I missed your earlier comment about not needing to track the pref. Just
seems to me that context menus can be used a lot so we wouldn't want to read the
pref every time.
Assignee | ||
Comment 30•19 years ago
|
||
We need this on branch for bug 301758
Attachment #190331 -
Attachment is obsolete: true
Attachment #217659 -
Flags: approval-branch-1.8.1?
Assignee | ||
Updated•19 years ago
|
Attachment #217659 -
Flags: approval-branch-1.8.1? → approval-branch-1.8.1?(neil)
Assignee | ||
Updated•19 years ago
|
Blocks: 301758
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
Target Milestone: mozilla1.8beta4 → mozilla1.8.1alpha2
Comment 31•19 years ago
|
||
Comment on attachment 217659 [details] [diff] [review]
as checked in
I Don't really think I'm a module owner here...
Attachment #217659 -
Flags: approval-branch-1.8.1?(neil)
Assignee | ||
Updated•19 years ago
|
Attachment #190331 -
Flags: approval-branch-1.8.1?(bzbarsky)
Updated•19 years ago
|
Attachment #190331 -
Flags: approval-branch-1.8.1?(bzbarsky) → approval-branch-1.8.1+
Assignee | ||
Comment 32•19 years ago
|
||
MOZILLA_1_8_BRANCH
Checking in content/events/src/nsEventStateManager.cpp;
/cvsroot/mozilla/content/events/src/nsEventStateManager.cpp,v <-- nsEventStateManager.cpp
new revision: 1.595.2.17; previous revision: 1.595.2.16
done
Checking in modules/libpref/src/init/all.js;
/cvsroot/mozilla/modules/libpref/src/init/all.js,v <-- all.js
new revision: 3.585.2.29; previous revision: 3.585.2.28
done
Keywords: fixed1.8.1
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: bugzilla → xptoolkit.widgets
You need to log in
before you can comment on or make changes to this bug.
Description
•