Context Menus in Firefox 2

There are items for what was clicked, what is selected elsewhere and items for the page in general. Only show items for what was clicked on. That’s the context part of context menu.
Image Link
When text is selected elsewhere, the context menu has 17 items and 4 separators. Wow!
- Only show items relevant to context. For a linked image:
- Keep items for links.
- Keep items for images.
- Remove everything else.
- Remove rarely used niche features:
- Set as Desktop Background
- Block images from domain name...
- Copy Image
- Copy Image Location
- Remove words which are unnecessary or redundant:
- Remove “Link” from the first 2 items. User chose to click on a link.
- Remove “This” from Bookmark This Link.
- Access keys:
- Avoid conflicts.
- Friendly for single-handed use.
- For items in menu bar, use the same access key.
- Give each item a unique access key.
- Captions:
- Show keyboard and mouse shortcuts to aid discoverability? I’ve seen friends use Right-click then Open Link in New Tab because they didn’t know about Middle-click.
- For items in menu bar, use the same text.
- Give each item unique text.
- Group related items together.
- Remove Send Link... and Send Image... as covered by File menu.
- Match OS conventions where possible. These suggestions follow Windows XP.
- Put the common cases first.
Result
- Open in New Tab Middle-click
- Open in New Window Shift+Click
- -
- Save Link As...
- Copy Link
- Bookmark Link...
- -
- View Image
- Save Image As...
- -
- Properties
Image or Background Image
<img>
, background-image
and list-style-image
could all be treated the same way. Only provide items for the image the user actually clicked on.
Result
- View Image
- Save As...
- -
- Properties
Link
Just apply the above principles.
Result
- Open in New Tab Middle-click
- Open in New Window Shift+Click
- -
- Save As...
- Copy Link
- Bookmark Link...
- -
- Properties
Selected Text
Remove Search default provider for “selected text”.... Search box is available in top-level chrome with support for drag-and-drop or copy-and-paste. This item also makes the context menu really wide.
Result
- Copy Ctrl+C
- -
- Selection Source
- Properties
In Text Control
<textarea>
, <input type="text">
, scripted widgets and so on:
- If
readonly
, these will be present but always disabled:- Undo Ctrl+Z
- Redo Ctrl+Y
- Cut Ctrl+X
- Paste Ctrl+V
- Delete Del
- Hide Selection Source?
Result (Text Selected)
- Undo Ctrl+Z
- Redo Ctrl+Y
- -
- Cut Ctrl+X
- Copy Ctrl+C
- Paste Ctrl+V
- Delete Del
- -
- Properties
Result (No Text Selected)
- Undo Ctrl+Z
- Redo Ctrl+Y
- -
- Cut Ctrl+X (Disabled)
- Copy Ctrl+C (Disabled)
- Paste Ctrl+V
- Delete Del (Disabled)
- -
- Properties
General Items
Right-clicking the page when none of the above apply.
- Remove items in top-level chrome, menu bar and with keyboard shortcuts:
- Back
- Forward
- Refresh
- Stop
- Remove items in menu bar and with keyboard shortcuts:
- Bookmark This Page...
- Save page As...
- Send Link...
- View Page Source
- Stop
Result
- Page Source Ctrl+U
- Page Info
- Properties
Background Image
- Rename View Background Image to View Background.
Process
- Start with items for this context as if it had no background image.
- If the group of image items is not shown, create an empty group in that position.
- Add View Background to the end of the group.