Commit 22263a64 authored by Dmitry.Vikulov's avatar Dmitry.Vikulov Committed by Alexander.Trofimov

удаление в этом контроллере

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@48395 954022d7-b5bf-4e40-9824-e11837661b57
parent e9143122
...@@ -280,9 +280,10 @@ function NullState(drawingObjectsController, drawingObjects) ...@@ -280,9 +280,10 @@ function NullState(drawingObjectsController, drawingObjects)
var selected_objects = this.drawingObjectsController.selectedObjects; var selected_objects = this.drawingObjectsController.selectedObjects;
switch (e.keyCode) switch (e.keyCode)
{ {
case 8: case 8: // Backspace
{ {
b_prevent_default = true; b_prevent_default = true;
this.drawingObjectsController.drawingObjects.deleteSelectedDrawingObject();
} }
case 9: // Tab (селект объектов) case 9: // Tab (селект объектов)
{ {
...@@ -308,6 +309,10 @@ function NullState(drawingObjectsController, drawingObjects) ...@@ -308,6 +309,10 @@ function NullState(drawingObjectsController, drawingObjects)
} }
} }
} }
case 46: // Delete
{
this.drawingObjectsController.drawingObjects.deleteSelectedDrawingObject();
}
} }
if(b_prevent_default) if(b_prevent_default)
e.preventDefault(); e.preventDefault();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment