1
Vote

When creating new item: "Escape" doesn't work

description

If I start inserting a new item -double click on calendar and start writing- but then I decide that I don't want to add this item, I cannot cancel the insertion. If I press "Esc" the item is added (although the text is cleared, so it's an empty item)

comments

cesar21 wrote Feb 23, 2012 at 10:23 PM

In the Calendar.cs file make
changes to the FinalizeEditMode(bool cancel) method.

Change these lines of code:
if(_creatingItem)
{
OnItemCreated(evt);
}

change to:
if (_creatingItem)
{
if (!cancel)
  OnItemCreated(evt);
else Items.Remove(itemBuffer);
}

wrote Feb 14, 2013 at 6:33 PM