Closed
Bug 991835
Opened 11 years ago
Closed 8 years ago
[Messages] Pressing "backspace" in a composer should not remove an attachment without a confirmation
Categories
(Firefox OS Graveyard :: Gaia::SMS, defect)
Tracking
(Not tracked)
RESOLVED
WONTFIX
People
(Reporter: julienw, Unassigned)
References
Details
(Keywords: feature, Whiteboard: [priority])
Attachments
(2 files)
STR:
1. open the Messages app, press new message
2. attach something (image or other)
3. input to add some text
4. press backspace to remove the text, and then once more
Expected:
* we have a confirmation dialog before removing the attachment
Actual:
* we have no confirmation dialog
This is happening since 1.1 and this is awkward since 1.1.
Needinfo to Omega for taking advice.
Flags: needinfo?(ofeng)
Comment 1•11 years ago
|
||
IMO a confirmation dialog here might be too strong.
I tried to play with it for a while, and describe the details here:
1) When user attaches an image and types something, it looks like:
[img]
hello|
2) Press Backspace 5 times to delete "hello", it looks like:
[img]
|
3) Press Backspace 1 more time, the image is deleted:
|
What we can improve is 2), just move the insert point to the end of line 1 like:
[img]|
That will improve the experience and feel more like "OK, the next Backspace is deleting the image".
Flags: needinfo?(ofeng)
| Reporter | ||
Comment 2•11 years ago
|
||
I'll check how we can do what you suggest in comment 1, I don't really remember how it works ;)
Omega, how about that we do a "undo" function ? It's more long-term of course but we could start here? Maybe for another bug?
Flags: needinfo?(ofeng)
Comment 3•11 years ago
|
||
(In reply to Julien Wajsberg [:julienw] from comment #2)
> Omega, how about that we do a "undo" function ? It's more long-term of
> course but we could start here? Maybe for another bug?
Undo is a good idea if possible. We can use a toast with Undo action like p.6 of the attachment of bug 940365.
Could you file that bug?
Flags: needinfo?(ofeng)
| Reporter | ||
Updated•11 years ago
|
Flags: needinfo?(felash)
| Reporter | ||
Comment 4•11 years ago
|
||
Filed Bug 994039 for an undo mechanism.
Here let's focus on the suggestion in comment 1.
Flags: needinfo?(felash)
| Reporter | ||
Updated•11 years ago
|
blocking-b2g: --- → 2.1?
Comment 5•11 years ago
|
||
This is an improvement on UX but won't be a blocker.
Let's put in TopX list.
blocking-b2g: 2.1? → backlog
Whiteboard: [priority]
Comment 6•10 years ago
|
||
| Reporter | ||
Comment 7•10 years ago
|
||
It's not really easy to put the cursor on the previous line, but it's quite easy to add a class. I still need to find when to remove the class though.
Comment 8•10 years ago
|
||
| Reporter | ||
Comment 9•10 years ago
|
||
Comment on attachment 8570478 [details] [review]
[gaia] julienw:991835-delete-attachment-3 > mozilla-b2g:master
This is another try that tries to do what Omega proposed. However I stumbled on bug 1137686 while implementing it.
Still this works not bad, because we need 2 "delete" to delete an attachment. But we have no visual cues.
I tested only on Firefox for now, not on device.
| Reporter | ||
Comment 10•10 years ago
|
||
And none of the patches work on the device :/ Maybe preventDefault() doesn't work?
| Reporter | ||
Comment 11•10 years ago
|
||
I tested a simple patch and preventDefault does work. So something else is happening.
| Assignee | ||
Updated•10 years ago
|
blocking-b2g: backlog → ---
tracking-b2g:
--- → backlog
Updated•10 years ago
|
tracking-b2g:
backlog → ---
Keywords: feature
| Reporter | ||
Comment 12•8 years ago
|
||
Mass closing of Gaia::SMS bugs. End of an era :(
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → WONTFIX
| Reporter | ||
Comment 13•8 years ago
|
||
Mass closing of Gaia::SMS bugs. End of an era :(
You need to log in
before you can comment on or make changes to this bug.
Description
•