Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!ucsd!ucbvax!isi.com!tsang From: tsang@isi.com (Kam C. Tsang) Newsgroups: comp.windows.x.motif Subject: translations Message-ID: <9007300423.AA16265@canopus> Date: 30 Jul 90 04:23:29 GMT Sender: daemon@ucbvax.BERKELEY.EDU Distribution: inet Organization: The Internet Lines: 47 I have the following widget hierachy: shell form menu paned window scrolled text scrolled text I would like to map the keys Return and keypad Enter to activate(), using something like this in the app-defaults file: *XmText*translations: #override\n\ KP_Enter: activate()\n\ CtrlReturn: activate()\n\ Return: activate()\n\ KP_Multiply: activate()\n\ Linefeed: activate()\n\ CtrlK: kill-to-end-of-line()\n\ CtrlY: unkill()\n\ CtrlL: redraw-display()\n\ CtrlA: beginning-of-line()\n\ CtrlE: end-of-line()\n\ Delete: delete-previous-character()\n\ CtrlD: delete-next-character()\n\ CtrlF: forward-character()\n\ CtrlB: backward-character()\n\ CtrlP: previous-line()\n\ CtrlN: next-line()\n\ CtrlO: newline() previous-line() end-of-line() \n\ Up: previous-line() \n\ Down: next-line() \n\ Home: traverse-home() \n\ End: end-of-file() The problem is that everything else in this translation works except KP_Enter, CtrlReturn and Return. Any clue? Thanx in advance. -kam -------------------------------------------------------------- Kam Tsang User Interface Group Tel: (408) 980-1500 x275 Integrated Systems, Inc. Internet: tsang@isi.com 2500 Mission College Blvd. Voice mail: (408) 980-1590 x275 Santa Clara, CA 94054