Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!ucbvax!ANDREW.CMU.EDU!tpn+ From: tpn+@ANDREW.CMU.EDU (Tom Neuendorffer) Newsgroups: comp.soft-sys.andrew Subject: Re: catching keyclicks Message-ID: Date: 2 Jan 91 15:50:15 GMT References: <9012282326.AA20242@informatics.WUstl.EDU> Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 17 Steve, Parent views can always override the keymaps of their child views. The easiest way to do this would be to wrap your textview in a celview (this is done automatically if you use ADEW and the arbcon to create your application, but can also be done within the application creating the dataobject and view). The celview has a couple of calls celview_SetKeymap(self,struct celview *celv, struct keymap *km); celview_SetMenulist(self,struct celview *celv, struct menulist *ml); that allow an external object to provide the overriding keymap or menulist. Alternately, if you already have control of the textview's parent, you could take a look at the celview code to see what it does. The view pointer that will be returned when a key is pressed will be to the textview itself, so that if your application has information sitting in this search control window, it will have to be able to map the textview to the right remote window. Then all you need then is a keymap that takes care of all the desired keystrokes.