зеркало из https://github.com/mozilla/pjs.git
r: mjudge
disabled selection (grey selection) excludes input fields now.
This commit is contained in:
Родитель
2943dba17e
Коммит
cd9615f2fb
|
@ -1116,7 +1116,20 @@ nsTextEditorFocusListener::Blur(nsIDOMEvent* aEvent)
|
|||
if (selCon)
|
||||
{
|
||||
selCon->SetCaretEnabled(PR_FALSE);
|
||||
selCon->SetDisplaySelection(nsISelectionController::SELECTION_DISABLED);
|
||||
if((flags & nsIHTMLEditor::eEditorSingleLineMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorPlaintextMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorPasswordMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorReadonlyMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorDisabledMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorFilterInputMask))
|
||||
{
|
||||
selCon->SetDisplaySelection(nsISelectionController::SELECTION_OFF);
|
||||
}
|
||||
else
|
||||
{
|
||||
selCon->SetDisplaySelection(nsISelectionController::SELECTION_DISABLED);
|
||||
}
|
||||
|
||||
#ifdef USE_HACK_REPAINT
|
||||
// begin hack repaint
|
||||
nsCOMPtr<nsIViewManager> viewmgr;
|
||||
|
|
|
@ -1116,7 +1116,20 @@ nsTextEditorFocusListener::Blur(nsIDOMEvent* aEvent)
|
|||
if (selCon)
|
||||
{
|
||||
selCon->SetCaretEnabled(PR_FALSE);
|
||||
selCon->SetDisplaySelection(nsISelectionController::SELECTION_DISABLED);
|
||||
if((flags & nsIHTMLEditor::eEditorSingleLineMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorPlaintextMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorPasswordMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorReadonlyMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorDisabledMask) ||
|
||||
(flags & nsIHTMLEditor::eEditorFilterInputMask))
|
||||
{
|
||||
selCon->SetDisplaySelection(nsISelectionController::SELECTION_OFF);
|
||||
}
|
||||
else
|
||||
{
|
||||
selCon->SetDisplaySelection(nsISelectionController::SELECTION_DISABLED);
|
||||
}
|
||||
|
||||
#ifdef USE_HACK_REPAINT
|
||||
// begin hack repaint
|
||||
nsCOMPtr<nsIViewManager> viewmgr;
|
||||
|
|
Загрузка…
Ссылка в новой задаче