зеркало из https://github.com/mozilla/pjs.git
Partial fix for 17848. Part 1 of 2. 2nd part will be checked in by hangas. r=hangas, a=brendan
This commit is contained in:
Родитель
52ce5fde68
Коммит
0eea38f731
|
@ -27,4 +27,6 @@ interface nsIController : nsISupports {
|
|||
boolean supportsCommand(in wstring command);
|
||||
|
||||
void doCommand(in wstring command);
|
||||
|
||||
void onEvent(in wstring eventName);
|
||||
};
|
||||
|
|
|
@ -207,8 +207,11 @@ XULCommandDispatcherImpl::GetFocusedNode(nsIDOMNode** aNode)
|
|||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::SetFocusedNode(nsIDOMNode* aNode)
|
||||
{
|
||||
// XXX On a blur, will need to fire an updatecommands (focus) on the
|
||||
// parent window.
|
||||
mCurrentNode = aNode;
|
||||
UpdateCommands(nsAutoString(aNode ? "focus" : "blur"));
|
||||
if (mCurrentNode)
|
||||
UpdateCommands(nsAutoString("focus"));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
|
@ -27,4 +27,6 @@ interface nsIController : nsISupports {
|
|||
boolean supportsCommand(in wstring command);
|
||||
|
||||
void doCommand(in wstring command);
|
||||
|
||||
void onEvent(in wstring eventName);
|
||||
};
|
||||
|
|
|
@ -207,8 +207,11 @@ XULCommandDispatcherImpl::GetFocusedNode(nsIDOMNode** aNode)
|
|||
NS_IMETHODIMP
|
||||
XULCommandDispatcherImpl::SetFocusedNode(nsIDOMNode* aNode)
|
||||
{
|
||||
// XXX On a blur, will need to fire an updatecommands (focus) on the
|
||||
// parent window.
|
||||
mCurrentNode = aNode;
|
||||
UpdateCommands(nsAutoString(aNode ? "focus" : "blur"));
|
||||
if (mCurrentNode)
|
||||
UpdateCommands(nsAutoString("focus"));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче