yuuchilyann / blockly

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

Is it a realy god idea to delete an item on backspace? #184

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Is it a realy god idea to delete an item on backspace key?

When we have a dialog with input fields. And like to delete an entry with 
backspace from input field it will delete the full block.

Are you aggree?

Original issue reported on code.google.com by henn...@mst.ch on 6 Jan 2014 at 1:54

GoogleCodeExporter commented 8 years ago
I can't make a block disappear with delete if there's a cursor present in an 
input field.  Yes, if one clicks on a block and presses delete, the block will 
be deleted.  But this should never happen if one clicked on the text.

Original comment by neil.fra...@gmail.com on 8 Jan 2014 at 12:06

GoogleCodeExporter commented 8 years ago
For the "delete" (e.keyCode == 46) i aggree with you, but not for "backspace" 
(e.keyCode == 8) 
@see Blockly.onKeyDown_()

I used the color picker as example and build an jQuery widget for huge table 
with alot of <input type="number" /> fields. When someone now edit one of this 
<input /> fields, an press the "backspace" key in chrome browser, it deletes 
the whole block.

Original comment by henn...@mst.ch on 8 Jan 2014 at 1:50