Path: utzoo!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!usc!zaphod.mps.ohio-state.edu!think!snorkelwacker!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Xt Accelerators Message-ID: <9002261847.AA00419@expo.lcs.mit.edu> Date: 26 Feb 90 18:47:00 GMT References: <9002251927.AA13834@rx7.ece.cmu.edu> Sender: daemon@athena.mit.edu (Mr Background) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 21 > I'm having trouble getting accelerators to work. What's wrong with > the following code? The intent is to have a Return keypress in the > dialog's `value' widget cause a set()notify()unset() action sequence > in the dialog's `show' widget. I'm using the R3 Athena widgets on a > DS 3100 running Ultrix. Section 10.4 of the Intrinsics documentation states that the default directive is #augment, "which means that the accelerator translations have lower priority than the destination translations." Because the Dialog's input area widget, the "value" widget, is an AsciiText widget, it has the default translations of the Text widget, including a translation for the return key. To specify that your accelerator translation take higher priority than the Text widget's translation, use the #override directive: acc = XtParseAcceleratorTable("#overrideReturn:set()notify()unset()"); Donna Converse converse@expo.lcs.mit.edu