Bug 782316 - Removed HOME and END keys from vc controller. r=davidb

This commit is contained in:
Eitan Isaacson 2012-08-15 13:40:11 -07:00
Родитель e64ec93a29
Коммит 99548dc1ec
1 изменённых файлов: 0 добавлений и 22 удалений

Просмотреть файл

@ -260,28 +260,6 @@ var VirtualCursorController = {
}
this[methodName](document, false, rule);
break;
case aEvent.DOM_VK_END:
if (this.editableState) {
if (target.selectionEnd != target.textLength)
// Don't move forward if caret is not at end of entry.
// XXX: Fix for rtl
return;
else
target.blur();
}
this.moveForward(document, true);
break;
case aEvent.DOM_VK_HOME:
if (this.editableState) {
if (target.selectionEnd != 0)
// Don't move backward if caret is not at start of entry.
// XXX: Fix for rtl
return;
else
target.blur();
}
this.moveBackward(document, true);
break;
case aEvent.DOM_VK_RIGHT:
if (this.editableState) {
if (target.selectionEnd != target.textLength)