If only the mouse was being used for selection, then it needs to reset itself to the state before dropping down
if arrow keys had been used then it needs to keep that selection
The combobox chaches the current selection, so when arrow keys are used it has the correct selection
when the mouse is used it holds the old selection. So therefore, we can compare against it
to determine what to do.
Bug 63247
r=waqar sr=hyatt
git-svn-id: svn://10.0.0.236/trunk@83918 18797224-902f-48f8-a5cc-f745e15eee43
53457 - multiple items can be selected in select size=1 or in single select listbox
50376 - Cannot select with DOM option on dynamically created SELECT element
62442 - Incorrect extended selection behavior in listboxes
First big change is getting rid of local variables for border and padding and use the ones in the reflow state
Changed "IsInDropDownMode() == PR_TRUE && mComboboxFrame" to "IsInDropDownMode() == PR_TRUE"
Fix for regression from changing of how key events work (no bug assigned), this fix enabled the user to hit 'f' or 'F' and get to the first item that start with 'f' or 'F'
r=kmcclusk sr=buster
git-svn-id: svn://10.0.0.236/trunk@83901 18797224-902f-48f8-a5cc-f745e15eee43
59035 - type of a BUTTON should default to submit when type isn't specified
r=kmcclusk sr=buster
git-svn-id: svn://10.0.0.236/trunk@83900 18797224-902f-48f8-a5cc-f745e15eee43
58220 - Select boxes rendering weird when using CSS to small value
r=kmclusk, sr=buster
git-svn-id: svn://10.0.0.236/trunk@83898 18797224-902f-48f8-a5cc-f745e15eee43
now it changes it value before the DOM call (script) and then if the event is cancelled
it sets the value back (which doesn't happen very often)
r=pollmann,jst sr=buster b=57137,57239,58460
git-svn-id: svn://10.0.0.236/trunk@83473 18797224-902f-48f8-a5cc-f745e15eee43
This fix correctly sets the content type for uploads for multipart posts
b=60737, r=rods sr=buster
git-svn-id: svn://10.0.0.236/trunk@82969 18797224-902f-48f8-a5cc-f745e15eee43
r=rods@netscape.coma=buster@netscape.com
d=Fixes the problem with listbox and modifier keys.
git-svn-id: svn://10.0.0.236/trunk@81018 18797224-902f-48f8-a5cc-f745e15eee43
on the content node which calls the frame. The frame is notified of Blur via thecontent node
watching for NS_CONTENT_BLUR events.
The rule we are removing from html.css is responsible for drawing in the focus,
but it causes the combobox, the dropdown and all the options to have their style reresolved.
Bug 32920, r=attinasi, b=buster
git-svn-id: svn://10.0.0.236/trunk@80349 18797224-902f-48f8-a5cc-f745e15eee43
- Remove temporary call to SetInitialValue() in CreateAnonymousContent().
- Move all calls to SetInitialValue() out from under the 'if' statement
they were under. This will make sure that it gets called at least
once since there are times when GetPrefSize() and Reflow() are not
called during the initial reflow.
r=mjudge@netscape.com
git-svn-id: svn://10.0.0.236/trunk@79192 18797224-902f-48f8-a5cc-f745e15eee43
Replaced call to ScrollSelectionIntoView() in SetTextControlFrameState()
with a call to nsIScrollableView::ScrollTo() that resets the scroll position
of the text widget to (0,0) when the value is replaced.
r=sfraser@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78914 18797224-902f-48f8-a5cc-f745e15eee43
the problem where we can't retrieve the password value from the password
dialog. Breaks logging into IMAP.
r=blizzard@mozilla.orga=leaf@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@78516 18797224-902f-48f8-a5cc-f745e15eee43
Moved code that set initial value of text control via the editor from
CreateAnonymousContent() to a new method called SetInitialValue().
SetInitialValue() is now called during the frame's first reflow.
Added mUseEditor to indicate when it is safe to use the editor
to get and set values.
r=mjudge@netscape.com
git-svn-id: svn://10.0.0.236/trunk@78409 18797224-902f-48f8-a5cc-f745e15eee43