Path: utzoo!attcan!uunet!lll-winken!ames!hc!pprg.unm.edu!unmvax!tut.cis.ohio-state.edu!bloom-beacon!ATHENA.MIT.EDU!kit From: kit@ATHENA.MIT.EDU (Chris D. Peterson) Newsgroups: comp.windows.x Subject: Re: Deficiency in the translation mechanism Message-ID: <8901261848.AA02930@DORA.MIT.EDU> Date: 26 Jan 89 18:48:24 GMT References: <6312@eagle.ukc.ac.uk> Sender: daemon@bloom-beacon.MIT.EDU Organization: The Internet Lines: 37 > You supply a translation table which binds > Return to Bell() > rather than > Return: newline() > This is not good enough to my thinking. It means that the application > writer has to second guess the bindings which the user may or may not > supply for all these actions. There is no need to replace the entire translation table, just use XtOverrideTranslations() in your application to override only the translation for Return. This is what xman does for its "search" prompter, the code is publically avaliable: R3: clients/xman/ Even better is to add a line it the AppDefaults file that overrides the translations. foo.bar.baz.text_widget: #override \n\ Return: newline() Chris D. Peterson MIT X Consortium / Project Athena Net: kit@athena.mit.edu Phone: (617) 253 - 1326 USMail: MIT - Room E40-321 77 Massachusetts Ave. Cambridge, MA 02139