Closed Bug 68853 Opened 24 years ago Closed 22 years ago

`Paste' context menu item doesn't work for textfield children of radiogroups

Categories

(SeaMonkey :: UI Design, defect, P3)

x86
Windows 2000
defect

Tracking

(Not tracked)

RESOLVED FIXED
mozilla1.2alpha

People

(Reporter: bugzilla, Assigned: bugs)

References

Details

(Keywords: polish)

Build ID: trunk (tip) Steps to Reproduce: Make sure you have textual data in your clipboard and... (1) Open the Preferences dialog (Edit | Preferences...). (2) Switch to Advanced > Proxies. (3) Right click on an enabled textfield. (4) Choose `Paste'. Result: nothing pastes. Note that as you right mousedown in step 3, the parent radiobutton is focused. We need to be preventing event bubbling more for radiogroups.
i keep thinkin' this is a dup...but cannot seem to find the orginal report. well, poop.
Confirmed Still a problem Platform: PC OS: Windows 9 Mozilla Build: 2001022620 Work around is to hit Ctrl-V which worksfine for me.
Severity: normal → trivial
Keywords: polish, ui
Radiogroups are unusual because they are containers that take focus. But I can't find any JavaScript reason for the focus going to the radiogroup. If you add JavaScript to set focus to the input before displaying the context, and also before performing a command, I was able to get all the commands except Select All to work. I can only guess that some C++ context menu code is to blame. I am guessing that it is not finding the correct control to set focus to. Further investigation shows that all that lovely code in the textbox binding has no effect whatsoever on the context menu. Sorry Blake, but I can't help you here.
Oh, by the way, what I tried was: i. Removed all code from the popups in textbox.xml ii. Traced mouse, focus and context messages in radio.xml 1. right mouse down causes input to get focus 2. right mouse up causes context menu event (this is Win32) 3. input loses focus to radiogroup for no apparent reason.
More investigation: I was singularly unable to affect the operation of textfield context menus in the Preferences dialog (inside or outside of radiogroups). However the textfield context menu in the Javascript Console was affected.
Status: NEW → ASSIGNED
Priority: -- → P3
Target Milestone: --- → mozilla1.2
*** Bug 104661 has been marked as a duplicate of this bug. ***
Blocks: 179372
WinXP using a current cvs build I can no longer reproduce this problem as described (i.e. Copy & Paste now works fine in the proxy dialog)
Marking as fixed.
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
Product: Core → Mozilla Application Suite
Component: XP Apps: GUI Features → UI Design
You need to log in before you can comment on or make changes to this bug.