Commit bd06296f authored by Dmitry Kazakov's avatar Dmitry Kazakov

Fix Shift and Alt modifiers in OUtline Selection Tool

We should pass the keys to the tool, even when it is not active
to make sure its keyPress/keyRelease methods work fine. To make
it works we need to initialize the environment correctly in
KisToolInvocationAction::processUnhandledEvent;

BUG:410532
BACKPORT:krita/4.2
parent c5f53ebd
......@@ -182,9 +182,14 @@ void KisToolInvocationAction::inputEvent(QEvent* event)
void KisToolInvocationAction::processUnhandledEvent(QEvent* event)
{
bool savedState = d->active;
KisToolProxy *savedToolProxy = d->runningToolProxy;
if (!d->runningToolProxy) {
d->runningToolProxy = inputManager()->toolProxy();
}
d->active = true;
inputEvent(event);
d->active = savedState;
d->runningToolProxy = savedToolProxy;
}
bool KisToolInvocationAction::supportsHiResInputEvents() const
......
......@@ -100,6 +100,8 @@ void KisToolSelectOutline::mouseMoveEvent(KoPointerEvent *event)
if (m_continuedMode && mode() != PAINT_MODE) {
updateContinuedMode();
}
KisToolSelect::mouseMoveEvent(event);
}
void KisToolSelectOutline::beginPrimaryAction(KoPointerEvent *event)
......
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