Unresponsive keyboard input once again

Honestly, Krita is tiring me right now.
It’s the only and only art app I had to behave unexpectedly with keyboard input.
July 24th 2021. The problems are still there and I don’t know why.
Modifiers keys are not even working anymore. CTRL/SHIFT/SPACE, these crucial buttons do nothing in the app, at a random moment ?
Then I start typing this, and apparently only and only after that, they continued to respond normally ? What’s wrong with how Krita handles keyboard input ? :worried: :anguished:

This is Google Translate.
Are keyboard shortcuts and canvas input the default?
I haven’t met it by default.

Hello @novames00,
At this point it is really unfortunate that we don’t know what is causing this problem. For some reason similar problems are being reported this past months, you may have seeing it as well.

Did you see this post? The OP of it made an interesting discovery (Quote bellow) that may help us, can you test to see if it is the same kind of problem afflicting you?

I installed the latest Windows 10 update, Krita 4.4.5 and the latest Huion Driver, like I said I would. I’m currently using Win10 but have it to seriously test Krita with it (Paint for a couple of hours straight). However I tested the method @shiyunkc explained and while keeping the space bar pressed and spamming Ctrl 4-5 times, Krita “dropped” the navigation tool and the color-pick hotkey didn’t work anymore. After releasing the Space key the color-pick worked normally, and the navigation tool also worked normally.

Can you enable the log viewer Docker? After using the color pick hot key a few times my log gives off this message:

WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Space, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Space, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()

I don’t know if this has anything to do with those problems, but it may be better than nothing.

Cheers.

Someone already made a bug report about this particular case. Bug 438784
Lets hope it envelopes your problem too, as for you it seems more serious and prominent (you have to change application to ‘reset’ the hot key) than the reproducible method in the bug report.

This is what happens on my side :

WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(NoModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Alt)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()

Now I’m experiencing a situation where pressing both CTRL+ALT several times consecutively, freezes the cursor for about 10 seconds, especially if I try to move it using my pen. There is inconsistency again with the keyboard input when I do that.
Should I use my mouse to do it, the issue doesn’t happen.
What’s wrong again this time. Why should it be today that this kind of issue occurs ?
Ah, Krita ! Guys, please give proper medicine to Kiki. She appears to be a bit ill.

When I only press and hold CTRL here’s what is displayed in the log viewer:

WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()

Then after I press CTRL+ALT several times(twice in this case) I get my cursor frozen
and this happens in the log viewer :

WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector(Qt::Key_Menu, Qt::Key_Control)
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier|AltModifier)
     d->matcher.debugPressedKeys() = QVector()
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()

As you can see it’s a very long list.
Why is this happening ?

Krita version used is V.5.0 pre alpha( stable plus )

I swear this warning should vanish and the problem with it.
I’m right now facing this problem again. Yet I’m using Krita 5.1 prealpha and I’m in 2022.
Just what the heck ? Is it because of Qt, or is it an unexepected issue coming from a typical portion of code ? Bad key input management is a critical problem to take care of when it comes to software quality. Why does Krita love to have conflicts with modifier key input like this ?
You press CTRL. The input is registered but badly processed. CTRL+Z works perfectly well.
But CTRL alone, or even ALT or Space, are not working. In other words, when the issue occurs, the app decides to not take care of some inputs.
And it’s always related to modifiers keys.

By the way, I noticed that there’s “zoom canvas”, “rotate canvas”, and “zoom and rotate canvas” sections in the input config. Is it normal that the latter exists when the first two are already there ?

This problem is a consequence of the following fix of mine from late 2020:

commit 86cc68ea0db64258b3ed8e9257b5f14f59509d34
Author: Dmitry Kazakov <dimula73@gmail.com>, Sat Nov 28 00:30:37 2020 +0300 (1 year, 1 month ago)
Committer: Dmitry Kazakov <dimula73@gmail.com>, Sat Nov 28 00:32:43 2020 +0300 (1 year, 1 month ago)
Follows: v4.3.0-prealpha
Precedes: v5.0.0-beta1
Branches: <Expand>

Another attempt to fix the locked modifiers state on Windows

It looks like Windows drops some key events when the user presses
Windows' window manager shortcuts, e.g. Alt+Space.

Steps to reproduce:
1) Press Alt+Space, see window title menu appeared
2) Click on the canvas to hide it
3) Now Krita is in a locked state. Press Alt key to unlock it.

CCBUG:424319

Hi, @novames00!

Could you please test this build when it is finished? I guess I have fixed this bug:

https://binary-factory.kde.org/job/Krita_Stable_Windows_Build/1359/

2 Likes

Seems like it’s fixed indeed.