Bug 329642 Remove global delete listener to make cancel dialog always work, r=mvl

This commit is contained in:
jminta%gmail.com 2006-06-19 17:03:47 +00:00
Родитель 1d902e7906
Коммит 4cf8cdf990
4 изменённых файлов: 15 добавлений и 2 удалений

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

@ -165,7 +165,6 @@
<key id="key_cut" key="&calendar.cut.key;" observes="cut_command" modifiers="accel"/>
<key id="key_copy" key="&calendar.copy.key;" observes="copy_command" modifiers="accel"/>
<key id="key_paste" key="&calendar.paste.key;" observes="paste_command" modifiers="accel"/>
<key id="delete_key" keycode="VK_DELETE" observes="delete_command_no_confirm"/>
<key id="key_selectAll" key="&calendar.selectall.key;" observes="select_all_command" modifiers="accel"/>
# calendar.xpi adds shift as an accelerator to these 4 keys so we don't conflict with Seamonkey
@ -675,6 +674,7 @@
</hbox>
<tree id="unifinder-search-results-listbox" flex="1"
onselect="unifinderOnSelect( event )"
onkeypress="unifinderKeyPress(event)"
enableColumnDrag="true">
<treecols id="unifinder-search-results-tree-cols">
<treecol id="unifinder-search-results-tree-col-title"

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

@ -833,3 +833,16 @@ function focusFirstItemIfNoSelection()
}
}
function unifinderKeyPress(aEvent) {
const kKE = Components.interfaces.nsIDOMKeyEvent;
switch (aEvent.keyCode) {
case 13:
// Enter, edit the event
editEvent();
break;
case kKE.DOM_VK_BACK_SPACE:
case kKE.DOM_VK_DELETE:
deleteEventCommand(true);
break;
}
}

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

@ -141,7 +141,6 @@
<key id="key_cut" key="&calendar.cut.key;" observes="cut_command" modifiers="accel"/>
<key id="key_copy" key="&calendar.copy.key;" observes="copy_command" modifiers="accel"/>
<key id="key_paste" key="&calendar.paste.key;" observes="paste_command" modifiers="accel"/>
<key id="delete_key" keycode="VK_DELETE" observes="delete_command_no_confirm"/>
<key id="key_selectAll" key="&calendar.selectall.key;" observes="select_all_command" modifiers="accel"/>
<key id="view_day_key" key="&calendar.dayView.key;" observes="day_view_command" modifiers="accel"/>

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

@ -601,6 +601,7 @@
</hbox>
<tree id="unifinder-search-results-listbox" flex="1"
onselect="unifinderOnSelect( event )"
onkeypress="unifinderKeyPress(event)"
enableColumnDrag="true">
<treecols id="unifinder-search-results-tree-cols">
<treecol id="unifinder-search-results-tree-col-title"