Single left-click on single *selected* pill should edit address
Categories
(Thunderbird :: Message Compose Window, enhancement)
Tracking
(thunderbird_esr78 wontfix, thunderbird86 wontfix)
People
(Reporter: thomas8, Assigned: thomas8)
References
(Blocks 1 open bug)
Details
(4 keywords)
User Story
In short (from bug 440377, comment 22 by Geert Poels): "I'd expect a single click to fully select, a second click to edit" In reply to Alessandro (:aleca), bug 440377 comment 115: "I was also thinking, would it be worth considering showing a pencil icon on hover? So the user can click that to edit the address? More discoverable than a double or right click."
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
aleca
:
review+
|
Details | Diff | Splinter Review |
I am looking at the latest available iteration of bug 440377: 73.0a1 (2019-12-10) (64-bit).*
Those pills can be stubborn when you don't know them yet and are trying to edit...
Let's make it as easy as possible for users to break that resistance of pills so that they can start to love them... ;-)
STR
- Compose new msg with recipient pills: (John Doe <foo@bar.com>)(Jane Doe <fox@bar.com>)
- Try the most intuitive way of editing an existing pill (John):
- Click once on pill (oh, that selects it, ok).
- Single-left-click again on selected pill, trying to break the selection (which is a common use pattern, see below).
Actual result
- Nothing
Expected result
- Single left-click on a single selected pill should edit that pill
- Perhaps change the mouse pointer into a small pencil on hover (morphing :aleca's idea of showing a floating pencil icon as a click target)
Benefits
- intuitive and discoverable
- complementary mouse method of editing pill (in addition to double-click and context menu)
- make "slow" double-clicks succeed
- Note that this must only work on a single selected pill (not for multiple selected pills), and prior focus is NOT required (as it comes with that second click). Cf. Windows Explorer behaviour.
Rationale:
- I think this could significantly ease the transition from the current "editable text" recipients, because it would mimick the currently available click pattern of TB 68 exactly:
- Since my Bug 1527547, TB helpfully auto-selects recipients when clicked or cursored into.
- So first click selects (pill-style), and next click edits.
- Clicking on selected things to edit their text is a common click pattern not only in current TB:
- edit name of selected item in Windows Explorer
- edit URL in FF
- collapse selection to edit text in any application
Assignee | ||
Updated•5 years ago
|
Comment 1•5 years ago
|
||
OTOH, it's not the normal case that you want to edit.
Maybe we want to instead look ahead: maybe there should be a nice popup showing everything we know about that contact, and there there would be an edit button too.
Comment 2•5 years ago
|
||
Yes, like the popup we have for the addresses in the message header in main window.
Assignee | ||
Comment 3•4 years ago
|
||
Mass-changing bugs around the new recipient area (pills) from product/component MailNews Core/Composition
to Thunderbird/Message Compose Window
, because composition frontend code is not shared with SM. Mostly cloned from Bug 440377 which started out in MailNews Core
long back.
20200614002RecipientPillsProductChangeTypeEnhancement
Assignee | ||
Comment 5•4 years ago
|
||
Sweet and simple - edit address made easy!
Motivation: We've had several user reports, the latest being duplicate bug 1691255, where users don't know how to edit a pill. Some reporting users are advanced users. Sometimes we make our users suffer for no reason. This fixes the problem by improving discovery without any side effects.
Now the "delayed double-click" will also work to edit an address:
- First click selects the pill ("oh, but I want to edit! Let me click again to break that selection!");
another deliberate click on the selected pill to edit. - Established use pattern for editing selected item text (e.g. rename selected file in Windows Explorer) as well as any selected text (e.g. Firefox location bar, TB 68 recipient input, any text input).
- Greatly improves ux-discovery.
- Also eases the transition for TB 68 muscle memory (same click pattern).
(In reply to comment #1 and Richard Marti (:Paenglab) from comment #2)
Yes, like the popup we have for [clicking] addresses in the message header in main window.
FTR: This patch is not prejudicial to having auto-popup menus in the future:
- Wrt discovery and ease of use, auto-popup menus only make sense on hover or first click, whereas here we're handling the second click on an already selected item.
Fwiw: Note that 3-pane auto-popups are different because currently, we do not allow selecting recipients in message reader. Here in composition we do support selecting recipient items, so having large auto-popups in composition which will cover other recipients and prevent their selection is a no-go.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Comment 6•4 years ago
|
||
Assignee | ||
Comment 7•4 years ago
|
||
Awesome! Alex and I have discussed this on Matrix yesterday and figured it's all good as it is.
Some peripheral improvements tbd in followup bugs.
(In reply to Alessandro Castellani (:aleca) from comment #6)
Review of attachment 9201740 [details] [diff] [review] ⧉[details] [diff] [review]:
Edge case:
- Write multiple addresses to make the header area scrollable.
- Select the first pill.
- Click again, which turns the pill editable.
I think it's pretty unlikely to "accidentally" click again on an already selected pill. It's the declared goal of this RFE to make it easier to get into edit-pill mode.
- Hit Esc because maybe the click was accidental when the user was reading
the selected pill.- The focus moves to the input field,
As discussed on Matrix, we should change that in a separate bug: Let the pill keep focus after editing for better ux-feedback and control. (Likewise, predictable cursor position after starting to edit pill text should have its own bug - maybe we can actually use the mouse position as if it was a text selection? But for keyboard, we must place cursor at the end).
which makes the area scroll, and
pushes the pill the user was interacting with outside the frame.
This will no longer occur if we keep the focus on the pill, so even for accidental clicks on an already selected pill, the impact will be near-zero as you can just press ESC to stop edit pill mode and even keep your visual context.
Would it be possible to enable editing only on a secondary and prolonged
click?
Long left-click may be required on MAC, but it's an unknown concept on Windows.
Fortunately, both the long click and the normal click will work with this patch, so all users can benefit from their OS-specific muscle-memory. Fwiw, capturing long-click with JS would be non-trivial.
Since we're repeating this modifiers conditions twice, I think we should
remove them from both this condition and the one above and add them once as
truthy to interrupt the code at once.
E.g.:
if (event.ctrlKey || event.metaKey || event.shiftKey) {
return;
}
There's checkSelected() at the end of the function which still needs to run, so early return is not possible. We agreed there's no useful way of rewriting this without affecting readability.
little lint error, missing space before opening curly bracket.
Fixed.
Comment 8•4 years ago
|
||
Updated•4 years ago
|
Comment 9•4 years ago
|
||
Comment 10•4 years ago
|
||
Pushed by mkmelin@iki.fi:
https://hg.mozilla.org/comm-central/rev/91ec97138cdd
Start editing address for click on single selected pill. r=aleca
Description
•