Treat the default item specially on context menus

RESOLVED FIXED in mozilla0.8

Status

()

Core
XUL
P3
enhancement
RESOLVED FIXED
19 years ago
2 years ago

People

(Reporter: Jesse Ruderman, Assigned: Mike Pinkerton (not reading bugmail))

Tracking

({platform-parity})

Trunk
mozilla0.8
platform-parity
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

(Reporter)

Description

19 years ago
(This was suggested by mpt@mailandnews.com in bug 27338)

The "default" option should be bolded on all contexts menu.  By "default" 
option I mean the action that happens when you left-click in the same place.

If there's no default action, don't bold anything.

If ctrl-clicking does something different than normal clicking, pretend that 
ctrl-clicking is the default action.  (Assumption: ability to ctrl-click is 
advertised in the context menu already)

Comment 1

19 years ago
I didn't suggest it should be emboldened (?) -- although that would be an 
interesting idea. What I suggested was that popup menus should be allowed to have 
a default item (i.e. the option right next to the mouse pointer when the menu is 
opened) which is not necessarily the topmost item.

As regards this bug, IIRC Windows Explorer does this with some of its context 
menus.
Summary: [RFE] bold the default option on context menus → [RFE] bold the default item on context menus
(Assignee)

Comment 2

19 years ago
m20, at least
Status: NEW → ASSIGNED
Target Milestone: --- → M20

Comment 3

18 years ago
Mass-moving all M20-M30 XPToolkit bugs to Future
Target Milestone: M20 → Future
*spam*: transferring current XP Menu bugs over to jrgm, the new component owner.
feel free to add me to the cc list (unless am the Reporter) of any of these, if
you have any questions/etc.
QA Contact: sairuh → jrgm

Comment 5

18 years ago
This styling is already done (in classic at least)...

Updated

18 years ago
Keywords: 4xp, pp
Summary: [RFE] bold the default item on context menus → Treat the default item specially on context menus

Comment 6

18 years ago
Blake, does that mean XUL now has a concept of a `default' action for a context 
menu, or do individual context menus just hack in this style themselves?

If the former, then as per the discussion in bug 27338, correct treatment of the 
default item would be --
* Windows, X: make the default item bold;
* Mac OS: don't apply any special style to the default item, but position it
  *under* the cursor (not just next to it) when the popup menu is drawn. If there
  is no default item, position the first menu item under the cursor.
(Assignee)

Comment 7

18 years ago
depends on 52106 for the mac work. the "bold" for win/unix can be hooked up in
this bug.
Depends on: 52106
Target Milestone: Future → mozilla1.0
(Assignee)

Updated

18 years ago
Target Milestone: mozilla1.0 → mozilla0.8

Comment 8

18 years ago
marking fixed.  Use default="true" to do this.
Status: ASSIGNED → RESOLVED
Last Resolved: 18 years ago
Resolution: --- → FIXED
(Assignee)

Comment 9

18 years ago
when is the default item of a context menu not the first item in the menu? if
it's not, shouldn't the menu be redesigned?

all our context menus put the "default" item first, so it seems (context-click
on the document, then context-click on a link...first items are different)...
(Assignee)

Comment 10

18 years ago
fwiw, the "make mac put the mouse under the default item" is a different bug.

Comment 11

18 years ago
> when is the default item of a context menu not the first item in the menu?

One example is for a link, when `Back' and `Forward' are the first items in the 
menu (bug 27338), but `Open Link' is the default item. See
<http://bugzilla.mozilla.org/showattachment.cgi?attach_id=13963>.
(Reporter)

Comment 12

18 years ago
I don't see anything bolded on context menus, but that's probably because I 
can't find any context menus that include the command that happens when you 
left-click without any modifiers.  Should I file a new bug for Open Link in New 
Window to be bolded when ctrl is held down?

Comment 13

18 years ago
pink's part of this was just to provide the ability (toolkit).  Actually 
setting default items in context menus is XPApps (content).

Updated

10 years ago
Component: XP Toolkit/Widgets: Menus → XUL
QA Contact: jrgmorrison → xptoolkit.widgets
You need to log in before you can comment on or make changes to this bug.