Skip to content
This repository has been archived by the owner on Feb 12, 2023. It is now read-only.

Commit

Permalink
fix(capslockindicator): also update indicator when the app gets focus
Browse files Browse the repository at this point in the history
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).
  • Loading branch information
b4n committed Jun 17, 2016
1 parent 5fc6728 commit 2fe4107
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/widget/capslockindicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ bool CapsLockIndicator::eventFilter(QObject *obj, QEvent *event)
if (obj == this)
updateIndicator();
break;
case QEvent::WindowActivate:
case QEvent::KeyRelease:
updateIndicator();
break;
Expand Down

0 comments on commit 2fe4107

Please sign in to comment.