Flash + Chrome = keyboard lock?

In one of my flash projects I come across a strange error. Flash Player in Google Chrome blocks some system keyboard shortcuts. For example, such as Alt + Shift and Ctrl + Shift are the standard language layout switches bindings.

This is a very big problem for my project because I need multilingual user input.

Can anyone help me with this problem?

+2


source to share


2 answers


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 ALT + A (which is a Polish letter).

The solution in Flash is to listen for input and key events in the textbox, and when you encounter alt + ctrl, just reset the cursor position in the input textbox.



We used it at MyWebzz.com - a website builder service

A class you can use to solve this problem, and a little more information about the problem can be found in our blog About Chrome and Flash Player ALT + error

+1


source


Have the same issue and report it to Chrome. This looks like a Google Chrome bug.

Please note that the problem occurs when you press [Right Alt] in some keyboard layouts (eg Polish).



After pressing [Right Alt], user can press [CTRL] to clear the CTRL state.

0


source







All Articles