Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!tut.cis.ohio-state.edu!ucbvax!bloom-beacon!MAPS.CS.CMU.EDU!Matthew.Diamond From: Matthew.Diamond@MAPS.CS.CMU.EDU Newsgroups: comp.windows.x Subject: Popup dialog keyboard focus Message-ID: <9006052336.AA25874@ATHENA.MIT.EDU> Date: 5 Jun 90 23:31:39 GMT Sender: daemon@athena.mit.edu (Mr Background) Organization: The Internet Lines: 20 SUMMARY: A problem setting the keyboard focus to a dialog box's value widget. I have a popup shell with a dialog box as the child. When I pop it up I set the keyboard focus of the top level to the value widget of the dialog. When the user types it goes into the value widget, no problem. Then I set the keyboard focus of the top-level to "None" and popdown the shell. BUT: keystrokes still go into the value widget! I have to set the keyboard focus explicitly to something else to solve the problem, I can't just set it to "None". Am I doing something wrong, or is this a bug? If initially I set the focus to the dialog widget, not to its value widget, setting the focus to "None" works. Vitals: X11R4, microVax II, 4-bit display. note: This code worked under r3, we started having problems when we switched to r4. Shame, 'cause r4 is better. Help! Matt matt@maps.cs.cmu.edu