DescriptionSend the real key code in deleteSurroundingText
On android, when user presses DEL or FORWARD_DEL using IME, Chrome generates key events with 0 keycode. This breaks lots of websites who count on having the real keycode in the key event listeners, especially for the control keys such as DEL and FORWARD_DEL.
This CL fixes the issue for the most common case when a single char is deleted. Instead of triggering deleteSurroudingText path with synthetic key events of key code 0, Chrome sends native key events with real key code.
BUG=118639
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283989
Patch Set 1 : #
Total comments: 1
Patch Set 2 : added tests #
Messages
Total messages: 11 (0 generated)
|