+
+void DrawingView::keyPressEvent(QKeyEvent * event)
+{
+ if (toolAction)
+ {
+ bool needUpdate = toolAction->KeyDown(event->key());
+
+ if (needUpdate)
+ update();
+ }
+}
+
+
+void DrawingView::keyReleaseEvent(QKeyEvent * event)
+{
+ if (toolAction)
+ {
+ bool needUpdate = toolAction->KeyReleased(event->key());
+
+ if (needUpdate)
+ update();
+ }
+}
+