enamigi / jsvectoreditor

Automatically exported from code.google.com/p/jsvectoreditor
0 stars 0 forks source link

Make the deletion the action, not the tool #5

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Create several shapes
2. Click on deletion button, click on the shape
3. Click on the other shape

What is the expected output? What do you see instead?
Two shapes are deleted which is not consistent with the standard behavior for 
the deletion.
Commonly you select the shape and click Delete (or press the key) and the 
shape disappears. When you click on the other shape, it's selected, not 
deleted - this is the expected behavior.

Original issue reported on code.google.com by emiro...@gmail.com on 30 Dec 2009 at 2:06

GoogleCodeExporter commented 9 years ago
Yeah, this is pretty awkward, but a feature, not a bug, to change the behavior, 
just 
add
{{{

editor.on("setmode",function(mode){
if(mode == "delete"){
editor.lastmode = "select"
}
})

}}}

Original comment by Antimatter15 on 30 Dec 2009 at 5:52

GoogleCodeExporter commented 9 years ago
I can't agree it is not a bug.
I agree that the application behaves as designed, but it's behavior is a 
usability
bug, as for me.
In any case, thanks for the tip!

Original comment by emiro...@gmail.com on 3 Jan 2010 at 4:33

GoogleCodeExporter commented 9 years ago
Nothing changed. After I click the delete button and start clicking around the 
shapes 
all of them are deleted.

Original comment by emiro...@gmail.com on 5 Jan 2010 at 11:30