Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!samsung!olivea!oliveb!amdahl!JUTS!ruts!jmg10 From: jmg10@ruts.ccc.amdahl.com (Jean M. Goldschmidt) Newsgroups: comp.windows.x Subject: Re: problem with Motif Text widget key translations Message-ID: Date: 12 Mar 91 00:37:21 GMT References: Sender: netnews@ccc.amdahl.com Reply-To: jmg10@RUTS.ccc.amdahl.com (Jean Goldschmidt) Organization: Amdahl Corporation, Sunnyvale CA Lines: 17 To address the problem of why the return key is not bound to activate(): (This may solve your problem!) I ran into the same problem several months ago. I was using the text widget as a child of a BulletinBoard widget. Now, the BulletinBoard widget has a resource called XmNdefaultButton which can be set to a button in the BulletinBoard which will be activated when the Return key is pressed. So, even if press Return inside the text widget, even though it is supposed to invoke the activate() procedure, it won't happen because the BulletinBoard owns the Return key's binding. (did I say that right??) What I did to solve this problem is set the XmNdefaultButton resource on the BulletinBoard to be a button which will pass the value inside the text widget to the appropriate callback. (There may be a way to ignore this XmNdefaultButton stuff but I am unaware of it!) Hope this helps,