Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ucsd!ucbvax!bloom-beacon!EXPO.LCS.MIT.EDU!converse From: converse@EXPO.LCS.MIT.EDU (Donna Converse) Newsgroups: comp.windows.x Subject: Re: Translation Mgr and : vs a: Message-ID: <9006061801.AA01921@expo.lcs.mit.edu> Date: 6 Jun 90 18:01:47 GMT References: Sender: root@athena.mit.edu (Wizard A. Root) Organization: X Consortium, MIT Laboratory for Computer Science Lines: 45 > I have run into a translation manager problem with event sequences, that > _seems_ to be a bug. Given that I have a resource file with translations in > it, the translation manager behaves differently in two situations where I > would expect it to work the same way. > > Consider a resource file with the following lines... > > *Command*translations:#replace\n\ > Escape,a: EscapeSeq()\n\ > a: KeyPressed() > > This behaves as I would expect it to; pressing "a" invokes KeyPressed() while > pressing "ESC-a" invokes EscapeSeq(). However, in the situation where > > *Command*translations:#replace\n\ > Escape,a: EscapeSeq()\n\ > : KeyPressed() > > pressing "a" does nothing while pressing "ESC-a" works correctly. > > Am I missing something here? I have poured over various books, manuals, etc, > but cannot seem to determine if this is a bug or expected behavior. The exact behavior is not specified; this is an area of the Xt Intrinsics which needs more definition. And it's current behavior doesn't clearly strike me as being right, either, in this particular case. It also seems to me that the documentation implies that in the second of the two examples that you give, pressing "escape a" should result in KeyPressed() and EscapeSeq() executing, but it doesn't work that way when I try it out. This happens to work to get the behavior that you want: *Command*translations:#replace\n\ Escape,a: EscapeSeq()\n\ a: KeyPressed()\n\ : KeyPressed() The problem is being addressed within the X Consortium group responsible for the Xt Intrinsics. Donna Converse converse@expo.lcs.mit.edu