r2367 Windows GDI and after versions
Shift key doesn't seems to be recognized well.
How to reproduce:
- Open minimap window
- Click on "Factory details" button
- Press [Shift] key and mouse over a factory which has a supplier
Result:
Red line and supplier appears for just an instant, but will disapper.
Instead white line and consumer will appears. (for my case)
Another person reported that red line and supplier blinking fast.
Note:
- r2636 doesn't have this problem.
- Windows SDL version doesn't have this problem.
In fact SDL-version on Linux did not work properly for me too: Pressing 'shift' once shows supplier lines but could not be reverted to show consumers.
Do you have a suspection why 2636 works and 2637 not? The change between both revisions should have only affected ctrl-keys.
Here is a patch both for windows and sdl. I cannot test the windows part now (being on linux). I hope you can compile it.
It should now work this way: mouse-over factories with shift not pressed shows consumer, mouse-over with shift pressed shows supplier. Toggling shift-key without moving the mouse will not have an effect (and should be fixed later).
Or would you like to use the shift key like caps-lock: Pressing the key toggles between the to states? I have no idea how this feature used to be, since I discovered today that the shift key has an effect here :P
Thank you. This patch solved the problem on Windows GDI.
But I can't compile and test SDL version in my PC, sorry.
included in rev 2654