mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 762799 - Cannot open bookmark from sidebar with keyboard (with Enter key). r=mak
This commit is contained in:
parent
ff27438eef
commit
60717a1f5a
@ -66,11 +66,11 @@ var SidebarUtils = {
|
||||
|
||||
handleTreeKeyPress: function SU_handleTreeKeyPress(aEvent) {
|
||||
// XXX Bug 627901: Post Fx4, this method should take a tree parameter.
|
||||
let node = aEvent.target.selectedNode;
|
||||
let tree = aEvent.target;
|
||||
let node = tree.selectedNode;
|
||||
if (node) {
|
||||
let view = PlacesUIUtils.getViewForNode(node);
|
||||
if (aEvent.keyCode == KeyEvent.DOM_VK_RETURN)
|
||||
PlacesUIUtils.openNodeWithEvent(node, aEvent, view);
|
||||
PlacesUIUtils.openNodeWithEvent(node, aEvent, tree);
|
||||
}
|
||||
},
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user