Reputation: 507
In one of my flash projects i meet an strange bug. Flash Player in Google Chrome blocking some system keyboard shortcuts. For example such as Alt+Shift & Ctrl+Shift it`s an standart language layout switch bindings.
For my project it`s a very big problem, because I need multilingual user input.
Someone can help me with this problem?
Upvotes: 2
Views: 1635
Reputation: 21
This is because Chrome sends CTRL+A and ALT+A to Flash, so the input first selects all the text and then replaces it with the ALT+A (which is a polish letter).
The solution in Flash is to listen to the input and key events on the textfield and when you encounter alt + ctrl, simple reset the position of the cursor in the input textfield.
We used it in MyWebzz.com - a website creator service
The class you can use to solve this, and little bit more info on the problem can be found on our blog About Chrome and Flash player ALT+a bug
Upvotes: 1
Reputation: 10002
Have the same problem and reported this to Chrome. This seems like a Google Chrome bug.
Note that the problem occurs when you press [Right Alt] in some keyboard layouts (e.g. Polish).
After pressing [Right Alt] user can press [CTRL] to clear out CTRL state.
Upvotes: 0