зеркало из https://github.com/mozilla/gecko-dev.git
Bug 782316 - Removed HOME and END keys from vc controller. r=davidb
This commit is contained in:
Родитель
e64ec93a29
Коммит
99548dc1ec
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче