Treat the default item specially on context menus

RESOLVED FIXED in mozilla0.8



19 years ago
2 years ago


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




Firefox Tracking Flags

(Not tracked)




19 years ago
(This was suggested by 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 
Summary: [RFE] bold the default option on context menus → [RFE] bold the default item on context menus

Comment 2

19 years ago
m20, at least
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)...


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.

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


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

Comment 8

18 years ago
marking fixed.  Use default="true" to do this.
Last Resolved: 18 years ago
Resolution: --- → FIXED

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)...

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

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).


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.