Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!tut.cis.ohio-state.edu!att!pacbell.com!ucsd!ucbvax!ANDREW.CMU.EDU!wjh+ From: wjh+@ANDREW.CMU.EDU (Fred Hansen) Newsgroups: comp.soft-sys.andrew Subject: Re: catching keyclicks Message-ID: Date: 2 Jan 91 18:55:53 GMT References: Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 21 Excerpts from internet.info-andrew: 2-Jan-91 Re: catching keyclicks Tom Neuendorffer (1024+0) > 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. Your code can redirect the keystrokes via im by setting the input focus whereever desired and calling im_DoKey: struct view *currentIF = im_GetInputFocus(im); view_WantInputFocus(targetview, targetview); im_DoKey(im); view_WantInputFocus(currentIF, currentIF); Unfortunately, this technique will entail a lot screen changes as the insets adjust to loss and gain of input focus. Fred Hansen