The problem that the effective keys near the function keys of the Keyboard custom keyboard and the function keys are duplicated

In the process of customizing the keyboard, in the process of customizing qwerty.xml or other custom keyboard xml files, there may be function keys around the function keys and the clicks of valid keys next to them are considered as function key clicks by the system. event issues. As shown below

The comma key and the ABC switch key, the dot sign and the 123 number switch key next to it. Click the comma or dot, the codes value is wrongly responded to as the ABC function key or 123 function key.

 
 

If the above problems have been checked and the specified keycode is correct, the following methods may be used to solve them.

Solution:

The correct configuration of the function keys

android:keyEdgeFlags="right" This attribute, the value of the function key on the left is set to left, and the value of the function key on the right is set to right.

After checking the above problems, the basic problems can be solved.

Guess you like

Origin blog.csdn.net/hnlht/article/details/124962031