mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 16:32:59 +00:00
fix to bug 120347 - Hitting the delete key should delete entry
Added a "onkeypress" to the tree to handle backspace & delete events
This commit is contained in:
parent
770b0c5cc4
commit
667ca273e2
@ -338,6 +338,19 @@ function unifinderRemoveCommand()
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is called from the unifinder when a key is pressed in the categories tree
|
||||
*/
|
||||
|
||||
function onUnifinderCategoriesKeyPress(event)
|
||||
{
|
||||
if ((event.keyCode == 8)||(event.keyCode == 46))
|
||||
{
|
||||
unifinderRemoveCommand();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is called from the unifinder when a key is pressed in the search field
|
||||
*/
|
||||
|
@ -71,7 +71,7 @@
|
||||
<tabpanels orient="horizontal" flex="1">
|
||||
<vbox id="unifinder-categories-box" flex="1">
|
||||
<vbox id="unifinder-categories-content-box" flex="1" >
|
||||
<tree id="unifinder-categories-tree" class="unifinder-tree-class" flex="1" >
|
||||
<tree id="unifinder-categories-tree" class="unifinder-tree-class" flex="1" onkeypress="onUnifinderCategoriesKeyPress(event)">
|
||||
<treechildren id="unifinder-categories-tree-children" flex="1"/>
|
||||
</tree>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user