mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Fix double selection problem in trees. r=ben
This commit is contained in:
parent
4c99aed8c0
commit
b03ae07bef
@ -109,13 +109,13 @@ NS_IMPL_ISUPPORTS1(nsXBLPrototypeHandler, nsIXBLPrototypeHandler)
|
||||
NS_IMETHODIMP
|
||||
nsXBLPrototypeHandler::EventMatched(nsIDOMEvent* aEvent, PRBool* aResult)
|
||||
{
|
||||
nsCOMPtr<nsIDOMKeyEvent> key(do_QueryInterface(aEvent));
|
||||
if (key)
|
||||
*aResult = KeyEventMatched(key);
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouse(do_QueryInterface(aEvent));
|
||||
if (mouse)
|
||||
*aResult = MouseEventMatched(mouse);
|
||||
else {
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouse(do_QueryInterface(aEvent));
|
||||
if (mouse)
|
||||
*aResult = MouseEventMatched(mouse);
|
||||
nsCOMPtr<nsIDOMKeyEvent> key(do_QueryInterface(aEvent));
|
||||
if (key)
|
||||
*aResult = KeyEventMatched(key);
|
||||
else *aResult = PR_TRUE;
|
||||
}
|
||||
|
||||
|
@ -109,13 +109,13 @@ NS_IMPL_ISUPPORTS1(nsXBLPrototypeHandler, nsIXBLPrototypeHandler)
|
||||
NS_IMETHODIMP
|
||||
nsXBLPrototypeHandler::EventMatched(nsIDOMEvent* aEvent, PRBool* aResult)
|
||||
{
|
||||
nsCOMPtr<nsIDOMKeyEvent> key(do_QueryInterface(aEvent));
|
||||
if (key)
|
||||
*aResult = KeyEventMatched(key);
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouse(do_QueryInterface(aEvent));
|
||||
if (mouse)
|
||||
*aResult = MouseEventMatched(mouse);
|
||||
else {
|
||||
nsCOMPtr<nsIDOMMouseEvent> mouse(do_QueryInterface(aEvent));
|
||||
if (mouse)
|
||||
*aResult = MouseEventMatched(mouse);
|
||||
nsCOMPtr<nsIDOMKeyEvent> key(do_QueryInterface(aEvent));
|
||||
if (key)
|
||||
*aResult = KeyEventMatched(key);
|
||||
else *aResult = PR_TRUE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user