If your browser window loses focus (by clicking on another tab / open program) whilst you have a key pressed then, on becoming focused again, the engine registers that the key is still pressed even if it is not. The problem becomes rectified after you press then release the same key again.
Attach a Capx
Description of Capx
The capx contains an object that can be moved left and right by holding down the arrow keys, using events.
Steps to Reproduce Bug
- Hold down Right arrow key and, with the key still pressed, change desktop focus - then release the arrow key
- Return to the browser window and observe the object is still moving right
- Try pressing Left arrow key and then release (+ observe object stops moving) then press the Right arrow key again - and observe that, when you release the key, the keydowns are subsequently correctly sensed
As per above.
When the layout's browser is in focus, all key-is-downs should be correctly sensed irrespective of their condition when the browser lost focus.
- Chrome: (YES)
- FireFox: (YES)
- Internet Explorer: (YES)
Operating System and Service Pack
Construct 2 Version ID
r206 64 bit