Bug 960946 - Correct events which can be generated and sent repeatedly from longpressing a key. r=yxl
This commit is contained in:
@@ -523,8 +523,12 @@ let FormAssistant = {
|
||||
domWindowUtils.sendKeyEvent('keypress', json.keyCode,
|
||||
json.charCode, json.modifiers);
|
||||
}
|
||||
domWindowUtils.sendKeyEvent('keyup', json.keyCode,
|
||||
json.charCode, json.modifiers);
|
||||
|
||||
if(!json.repeat) {
|
||||
domWindowUtils.sendKeyEvent('keyup', json.keyCode,
|
||||
json.charCode, json.modifiers);
|
||||
}
|
||||
|
||||
this._editing = false;
|
||||
|
||||
if (json.requestId && doKeypress) {
|
||||
|
||||
Reference in New Issue
Block a user