Bug 1124982 - [AccessFu] Use correct symbols for keycodes in ContentControl.adjustRange(). r=yzen

This commit is contained in:
Eitan Isaacson 2015-01-24 17:33:45 -08:00
parent f0e88e9e94
commit 4d3ad794bc

View File

@ -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);