mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(capslockindicator): also update indicator when the app gets focus
This allows to have an up-to-date indicator when the caps lock state changed outside of the application and the user comes back to it, even if it doesn't trigger a Show event (e.g. the window was visible all the time).
This commit is contained in:
parent
5fc67284cd
commit
2fe41071be
|
@ -36,6 +36,7 @@ bool CapsLockIndicator::eventFilter(QObject *obj, QEvent *event)
|
|||
if (obj == this)
|
||||
updateIndicator();
|
||||
break;
|
||||
case QEvent::WindowActivate:
|
||||
case QEvent::KeyRelease:
|
||||
updateIndicator();
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue
Block a user