Ensure that the style buttons update as soon as you press them, so that the button reflects the type-in state properly.

This commit is contained in:
sfraser%netscape.com 2000-05-03 05:13:59 +00:00
Родитель 3dbb4c8d9b
Коммит fe26596791
2 изменённых файлов: 8 добавлений и 2 удалений

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

@ -141,7 +141,10 @@ nsBaseStateUpdatingCommand::DoCommand(const PRUnichar *aCommand, nsISupports * r
nsCOMPtr<nsIEditorShell> editorShell = do_QueryInterface(refCon);
if (!editorShell) return NS_ERROR_NOT_INITIALIZED;
return ToggleState(editorShell, mTagName);
nsresult rv = ToggleState(editorShell, mTagName);
if (NS_FAILED(rv)) return rv;
return UpdateCommandState(aCommand, refCon);
}
NS_IMETHODIMP

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

@ -141,7 +141,10 @@ nsBaseStateUpdatingCommand::DoCommand(const PRUnichar *aCommand, nsISupports * r
nsCOMPtr<nsIEditorShell> editorShell = do_QueryInterface(refCon);
if (!editorShell) return NS_ERROR_NOT_INITIALIZED;
return ToggleState(editorShell, mTagName);
nsresult rv = ToggleState(editorShell, mTagName);
if (NS_FAILED(rv)) return rv;
return UpdateCommandState(aCommand, refCon);
}
NS_IMETHODIMP