Bug 668606 input event should be fired on all editors r=ehsan+smaug, sr=smaug
This commit is contained in:
@@ -169,7 +169,6 @@ nsTextControlFrame::nsTextControlFrame(nsIPresShell* aShell, nsStyleContext* aCo
|
||||
: nsStackFrame(aShell, aContext)
|
||||
, mUseEditor(false)
|
||||
, mIsProcessing(false)
|
||||
, mNotifyOnInput(true)
|
||||
, mFireChangeEventState(false)
|
||||
#ifdef DEBUG
|
||||
, mInEditorInitialization(false)
|
||||
@@ -1382,23 +1381,6 @@ nsTextControlFrame::GetMaxLength(PRInt32* aSize)
|
||||
return false;
|
||||
}
|
||||
|
||||
// this is where we propagate a content changed event
|
||||
void
|
||||
nsTextControlFrame::FireOnInput(bool aTrusted)
|
||||
{
|
||||
if (!mNotifyOnInput)
|
||||
return; // if notification is turned off, do nothing
|
||||
|
||||
// Dispatch the "input" event
|
||||
nsEventStatus status = nsEventStatus_eIgnore;
|
||||
nsUIEvent event(aTrusted, NS_FORM_INPUT, 0);
|
||||
|
||||
// Have the content handle the event, propagating it according to normal
|
||||
// DOM rules.
|
||||
nsCOMPtr<nsIPresShell> shell = PresContext()->PresShell();
|
||||
shell->HandleEventWithTarget(&event, nsnull, mContent, &status);
|
||||
}
|
||||
|
||||
nsresult
|
||||
nsTextControlFrame::InitFocusedValue()
|
||||
{
|
||||
@@ -1618,4 +1600,3 @@ nsTextControlFrame::RestoreState(nsPresState* aState)
|
||||
Properties().Set(ContentScrollPos(), new nsPoint(aState->GetScrollState()));
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user