Commit ac107822 authored by Dan Leinir Turthra Jensen's avatar Dan Leinir Turthra Jensen 🌈

sketch: Forward keyboard events to the sketch view - canvas shortcuts work now

parent f020c558
......@@ -506,6 +506,11 @@ bool KisSketchView::event( QEvent* event )
#endif
d->canvas->inputManager()->eventFilter(this, event);
return true;
case QEvent::KeyPress:
case QEvent::KeyRelease:
emit interactionStarted();
QApplication::sendEvent(d->view, event);
break;
default:
break;
}
......
......@@ -147,6 +147,8 @@ bool SketchDeclarativeView::event( QEvent* event )
switch(static_cast<int>(event->type())) {
case ViewModeSwitchEvent::AboutToSwitchViewModeEvent:
case ViewModeSwitchEvent::SwitchedToSketchModeEvent:
case QEvent::KeyPress:
case QEvent::KeyRelease:
case QEvent::TabletPress:
case QEvent::TabletMove:
case QEvent::TabletRelease: {
......
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