mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-27 07:34:20 +00:00
Bug 1124982 - [AccessFu] Use correct symbols for keycodes in ContentControl.adjustRange(). r=yzen
This commit is contained in:
parent
db8aa62808
commit
ef4857a6f0
@ -287,8 +287,7 @@ this.ContentControl.prototype = {
|
||||
elem.dispatchEvent(evt);
|
||||
} else {
|
||||
let evt = this.document.createEvent('KeyboardEvent');
|
||||
let keycode = aStepUp ? content.KeyEvent.DOM_VK_DOWN :
|
||||
content.KeyEvent.DOM_VK_UP;
|
||||
let keycode = aStepUp ? evt.DOM_VK_DOWN : evt.DOM_VK_UP;
|
||||
evt.initKeyEvent(
|
||||
"keypress", false, true, null, false, false, false, false, keycode, 0);
|
||||
elem.dispatchEvent(evt);
|
||||
|
Loading…
x
Reference in New Issue
Block a user