Bug 440352

Summary: Too much inconsistency with the modifier keys(Krita 5.0 pre alpha)
Product: [Applications] krita Reporter: stephen <tgdev001>
Component: GeneralAssignee: Krita Bugs <krita-bugs-null>
Status: RESOLVED DUPLICATE    
Severity: normal CC: ahab.greybeard, halla
Priority: NOR    
Version: git master (please specify the git hash!)   
Target Milestone: ---   
Platform: Other   
OS: Other   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description stephen 2021-07-28 12:10:39 UTC
SUMMARY
There's too much inconsistency with the modifier keys
and it tends to freezes inputs and the cursor, up to the point
that you have to wait a certain amount of time before being able
to use Krita again.

STEPS TO REPRODUCE
1. Keep your pen in detection and press CTRL+ALT several times
2. Continue until the cursor gets frozen

OBSERVED RESULT
The cursor gets frozen as well as many inputs. 

OTHER OBSERVATIONS :
I. There's no way to reproduce this if your pen is not detected(
if you are using your mouse.)

II. The log viewer displays this before I pressed CTRL+ALT several
times while having my pen detected, I pressed CTRL only once :
-----------------------------------
WARNING: modifiers state became inconsistent! Trying to fix that...
     inputEvent->modifiers() = QFlags<Qt::KeyboardModifier>(ControlModifier)
     d->matcher.debugPressedKeys() = QVector()

-----------------------------------
III. Then it shows this after I pressed CTRL+ALT several times(twice in this case)
-----------------------------------

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|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()
------------------------------

EXPECTED RESULT
Not this much warnings, no cursor/input freeze,
and a 100% consistent modifier key input, while having the pen
detected.

SOFTWARE/OS VERSIONS
Windows 10 1909
Krita v5.0 pre alpha(git 11dd91c)
Comment 1 Ahab Greybeard 2021-07-29 21:21:03 UTC
This is very similar to https://bugs.kde.org/show_bug.cgi?id=438784 but with a slightly different cause and a different effect
Comment 2 Halla Rempt 2022-06-28 11:28:05 UTC

*** This bug has been marked as a duplicate of bug 438784 ***