MSzturc / ThinkpadAssistant

An Assistant Application that allows you to use all your Function Keys on a T-Series Thinkpad Laptop
122 stars 13 forks source link

[Bug] First unwanted Caplock notification #35

Closed igorkulman closed 4 years ago

igorkulman commented 4 years ago

Steps to reproduce:

This happens just once after ThinkpadAssistant starts.

igorkulman commented 4 years ago

I think this happens because the initial capslock state in CapslockMonitor is set to nil as I did not know how to get the initial value.  This causes the problem.

igorkulman commented 4 years ago

I found a C method to get the Capslock state: https://discussions.apple.com/thread/7094207?answerId=28445444022#28445444022

I will test it out and send a PR, I think this will help.