Closed Bug 31135 Opened 25 years ago Closed 24 years ago

Selection doesn't work in read-only text fields.

Categories

(Core :: DOM: Selection, defect, P3)

x86
All
defect

Tracking

()

RESOLVED FIXED

People

(Reporter: christof.ameye, Assigned: dprice)

Details

If you want to copy and paste with the mouse (from the ftp proxy settings to the
http proxy settings for example), then you can't copy (selecting with the mouse
and the pasting remains the last copy that you paste before you wanted to copy
the information in the proxy settings (you know the standard copy and paste :
select with the left mouse button, and paste with the middle mouse button).
Changing component to Preferences
Assignee: neeti → matt
Component: Preferences: Backend → Preferences
Reassign to Matt
in 4/22 build I can't even select anything in text fields.

Confirming bug.

Status: UNCONFIRMED → NEW
Ever confirmed: true
->eli, for selection problems.
Assignee: matt → beppe
Component: Preferences → Selection
QA Contact: sairuh → elig
I see this too: there's something weird about those text fields under "Proxies",
so that some mouse and keyboard events aren't getting to them properly.  I can
type in these text fields, and I can click in them, but mouse drags for
selection don't work, and XBL bindings like backspace and arrow keys don't
work.  

I'm not sure yet what's going on there, or what's different about the proxies
text fields vs. other text fields in other prefs panes.

CC'ing Ben, who changed a bunch of prefs panes and might be able to elaborate on
what's unusual about the text fields in the proxies pane, and Tom, who changed
lots of event code over the weekend and might have a clue why the editor isn't
getting all the mouse or keyboard events.
Got the scoop.  Turns out these are read-only text fields.  There are two bugs
here:
1. Selection doesn't work in read-only text fields.
2. Typing (but not XBL bindings) DO work in read-only text fields.

I'm going to make this bug 1 and send it to Mike (who may already have a bug on
this).  Point 2 is covered by bug 36942 (currently assigned to Hyatt, which
seems wrong, but maybe there's some reason for that).
Assignee: beppe → mjudge
changing summary to reflect Akkana's comments above
set to m16 for now (may get pushed off depending on what else mjudge has on his 
plate for M16)
Summary: proxy settings: no copy with mouse → Selection doesn't work in read-only text fields.
Target Milestone: --- → M16
look at nsFrame::HandlePress to follow path. someone probably set the style on 
disabled fields to refuse selection.
Assignee: mjudge → dprice
Style appears to be set correctly, nsSelection::GetDisplaySelection() is 
returning null because mDisplaySelection is not set.
Checked in a fix.
Status: NEW → RESOLVED
Closed: 24 years ago
OS: Linux → All
Resolution: --- → FIXED
Keywords: verifyme
*SPAM*: Changing the QA contact of all open/resolved Selection bugs from 
elig@netscape.com to BlakeR1234@aol.com.  After the many great years of service 
Eli has given to Mozilla, it's time for him to move on; he has accepted a 
position at Eazel.  We'll be sad to see him go, and I'll do my best to fill his 
spot...
QA Contact: elig → BlakeR1234
mass remove verifyme requests greater than 4 months old
Keywords: verifyme
You need to log in before you can comment on or make changes to this bug.