The Scheduler doesn't contain any element that can get focus. You can detect the Delete key for the whole page using the following code:
<script type="text/javascript">
$(document).keyup(function (e) {
if (e.keyCode == 46) {
var firstSelected = dp.multiselect.events()[0];
dp.commandCallBack("delete", { e: firstSelected });
}
});
On the server side (ASP.NET MVC):
class Dps : DayPilotScheduler
{
// ...
protected override void OnCommand(CommandArgs e)
{
switch (e.Command)
{
case "delete":
string id = (string)e.Data["e"]["id"];
new EventManager(Controller).EventDelete(id);
Update(CallBackUpdateType.EventsOnly);
break;
}
}
}