• Dmitry Kazakov's avatar
    Workaround Krita canvas cursor update when application has no input focus · 24479fd3
    Dmitry Kazakov authored
    When we have no input focus, we cannot track keyboard key press/release
    events (for security reasons). But at the same time, the user can easily
    hover Krita canvas, and we should show him somewhat correct cursor.
    
    So here we just try to fetch at least basic modifiers state from mouse/
    tablet events. It is perfectly allowed by OS.
    
    Yes, this workaround will not fetch custom modifiers like V-key switch
    for straight lines. But I don't think anyone will worry about it.
    
    BUG:369305
    24479fd3
kis_shortcut_matcher.cpp 19.2 KB