Closed Bug 57759 Opened 24 years ago Closed 24 years ago

Items in xul textfield context menus need to enable/disable at proper times

Categories

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

defect

Tracking

()

VERIFIED FIXED

People

(Reporter: bugzilla, Assigned: bugzilla)

References

Details

(Keywords: helpwanted)

Attachments

(4 files)

Undo needs to be enabled when there's nothing to be undone in the new xul 
textfield context menus (trunk only).
Actually, all of the items (except Select All) need to be enabled/disabled at 
the right moments.
Summary: Undo is always enabled in xul textfield context menus → Items in xul textfield context menus need to enable/disable at proper times
->future
Status: NEW → ASSIGNED
Target Milestone: --- → Future
->untargetted. cc pink & saari.  who should get this?
Target Milestone: Future → ---
MHO is that this is ender's bug, not a toolkit bug, as it deals with content of
the menus, not the menus. right?

all that's needed is an oncreate handler like in navigator.
Okay, didn't know if there was one and it was just not working. Thanks! ->editor
Assignee: trudelle → beppe
Status: ASSIGNED → NEW
Component: XP Toolkit/Widgets → Editor
QA Contact: jrgm → sujay
oh, I'll do it you big baby ;) (er, pink that is).
Assignee: beppe → blakeross
*** Bug 64200 has been marked as a duplicate of this bug. ***
OS: Windows 98 → All
Hardware: PC → All
if i ever get focused i might look at this again.
Keywords: helpwanted
what about redo and delete commands?  Should those be handled too?
Ack...nice catch.  Apparently whoever implemented these textfields originally 
mistakenly used cmd_cut instead of cmd_delete when getting the controller, and 
I just looked down the list when writing the array.  I didn't catch this when 
testing because Delete and Cut are enabled/disabled at the same time.

Note also that for now we don't try to enable/disable Select All, because it 
never disables (there's another bug on disabling Select All when all the text 
is selected).

We have a separate bug on whether or not to add Redo.

brade, wanna review this?
Status: NEW → ASSIGNED
sidenote:  select all should also be disabled if there is no text
while you're making major changes, could you aim for 80-82 columns?
r=timeless given assurance that the committed version addresses my concern.
cc'ing alec for sr
looks good blake... thanks for cleaning it up
sr=alecf
checked in.
Status: ASSIGNED → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
*** Bug 63693 has been marked as a duplicate of this bug. ***
verified in 2/6 build.
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: