From Wojciech Lewandowski, "There was a bug in reading modifier keys when focus to GraphicsWindowWin32  was restored. Handler of WM_SETFOCUS was reading pressed keys and sending WM_KEYDOWN messages to fill initial keyboard state. But WM_KEYDOWN messages sent had  0 on lParam and adaptKey method computing state of modifier mask was using lParam to find which modifier keys are down. Obviously when lParam was 0 it was not recording proper modifier masks.
From Wojciech Lewandowski, "There was a bug in reading modifier keys when focus to GraphicsWindowWin32  was restored. Handler of WM_SETFOCUS was reading pressed keys and sending WM_KEYDOWN messages to fill initial keyboard state. But WM_KEYDOWN messages sent had  0 on lParam and adaptKey method computing state of modifier mask was using lParam to find which modifier keys are down. Obviously when lParam was 0 it was not recording proper modifier masks.

This patch fixes this code sending proper lParam and also makes sure LEFT_CONTROL will be not confused with RIGHT_CONTROL."


artoolkit/osg,stmh/osg,ghub/osg,stmh/osg,omega-hub/osg,XiaoCC/osg,omega-hub/osg,stmh/osg,artoolkit/osg,ntoand/osg,ntoand/osg,XiaoCC/osg,koshman86/osg,artoolkit/osg,omega-hub/osg,koshman86/osg,ghub/osg,ghub/osg,XiaoCC/osg,artoolkit/osg,XiaoCC/osg,omega-hub/osg,ntoand/osg,ghub/osg,stmh/osg,stmh/osg,ntoand/osg,koshman86/osg,XiaoCC/osg,koshman86/osg