зеркало из https://github.com/mozilla/pjs.git
bug 353470 - Stops propagating ENTER and DELETE key events when an item is selected in the todo list. Patch by jminta, r1=lilmatt, r2=dmose
This commit is contained in:
Родитель
94b8a67d23
Коммит
7c69f8ae93
|
@ -234,9 +234,11 @@
|
|||
const kKE = Components.interfaces.nsIDOMKeyEvent;
|
||||
if (event.keyCode == kKE.DOM_VK_RETURN ||
|
||||
event.keyCode == kKE.DOM_VK_ENTER) {
|
||||
event.stopPropagation();
|
||||
this.fireEvent("item-open");
|
||||
} else if (event.keyCode == kKE.DOM_VK_BACK_SPACE ||
|
||||
event.keyCode == kKE.DOM_VK_DELETE) {
|
||||
event.stopPropagation();
|
||||
this.fireEvent("item-delete");
|
||||
} else if (event.keyCode == kKE.DOM_VK_SPACE) {
|
||||
var selected = this.selectedItem;
|
||||
|
|
Загрузка…
Ссылка в новой задаче