3
$\begingroup$

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?

$\endgroup$

1 Answer 1

4
$\begingroup$

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

$\endgroup$
2
  • $\begingroup$ 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? $\endgroup$ Commented Jul 11, 2013 at 21:21
  • $\begingroup$ @Liam I don't know of an option for that, but I'll think about it. $\endgroup$ Commented Jul 12, 2013 at 1:34

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.