Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

How might I be able to prevent a Cell form being deleted when you press the Delete key?

Maybe there is a way to display some type of Dialog when you attempt to delete(or cut) a cell?

share|improve this question

1 Answer 1

up vote 2 down vote accepted

The option is Deletable:

Deletable is an option for Cell which specifies whether the cell can be deleted interactively using the front end.

You can set it either programmatically as shown in the documentation linked above, or with the Option Inspector (Shift+Ctrl+O on Windows).

enter image description here

share|improve this answer
    
Ideally I am just looking for a way to double check that the user wants to Delete the cell, and not necessarily prevent it entirely. I see tried and DeleteWithWarning but it didn't seem to work, might you have any other ideas? –  Liam William Jul 11 '13 at 21:21
    
@Liam I don't know of an option for that, but I'll think about it. –  Mr.Wizard Jul 12 '13 at 1:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.