kokoye2007 / waitzar

Automatically exported from code.google.com/p/waitzar
Other
0 stars 1 forks source link

Help Keyboard doesn't always highlight shift #129

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Switch to Ayar. Type a letter. Switch to WaitZar (don't change to ENG). Press 
F1. Hold down "Shift". 

The virtual key doesn't highlight. Perhaps the hotkey isn't registered 
properly? 

Original issue reported on code.google.com by seth.h...@gmail.com on 7 Jul 2010 at 3:45

GoogleCodeExporter commented 9 years ago
Note: Holding down shift will make it highlight the FIRST time this is done. 
Weirdness.

Original comment by seth.h...@gmail.com on 23 Aug 2010 at 12:11

GoogleCodeExporter commented 9 years ago
Fixed: It was a problem with using GetKeyState() and not having the message 
fully handled yet.

I think our general means of injecting messages was causing the problem (or 
something), but switching to GetAsyncKeyState() fixed the problem (and had no 
side-effects that I can see, looking at our code and the documentation.)

This also fixed that really old bug with the "first keypress" not registering. 
Seems our code was always a half-step out of sync with what was actually 
occurring on the keyboard. 

Generating a new nightly so people can test this....

Original comment by seth.h...@gmail.com on 23 Aug 2010 at 2:51