Commit 31dde7a7 authored by Yumin Yuan's avatar Yumin Yuan Committed by Kitware Robot

Merge topic 'contourwidget-backspace-key'

a9fc639f Add callback to handle BackSpace keypress for vtkContourWidget interaction
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Reviewed-by: Bob Obara's avatarBob Obara <bob.obara@kitware.com>
Merge-request: !1984
parents c199ca31 a9fc639f
......@@ -57,6 +57,10 @@ vtkContourWidget::vtkContourWidget()
vtkEvent::NoModifier, 127, 1, "Delete",
vtkWidgetEvent::Delete,
this, vtkContourWidget::DeleteAction);
this->CallbackMapper->SetCallbackMethod(vtkCommand::KeyPressEvent,
vtkEvent::NoModifier, 8, 1, "BackSpace",
vtkWidgetEvent::Delete,
this, vtkContourWidget::DeleteAction);
this->CallbackMapper->SetCallbackMethod(vtkCommand::KeyPressEvent,
vtkEvent::ShiftModifier, 127, 1, "Delete",
vtkWidgetEvent::Reset,
......
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