Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!cs.utexas.edu!sun-barr!newstop!texsun!convex!iex!ntvax!doug From: doug@ntvax.uucp (Douglas Scott) Newsgroups: comp.windows.x Subject: Re: Problems getting keyboard input Message-ID: <1989Dec6.161410.6998@ntvax.uucp> Date: 6 Dec 89 16:14:10 GMT References: <1324@cacilj.UUCP> Reply-To: doug@ntvax.UUCP (Douglas Scott) Organization: University of North Texas Lines: 20 In article <1324@cacilj.UUCP> paul@cacilj.UUCP (Paul Close) writes: >I am currently having no success trying to rad characters from the keyboard. >I am using DECwindows, and the Xt toolkit. Here's how I set up the keyboard >read: > ----SOME CODE DELETED ---- >I have implemented a "mouse button pressed" routine that is almost identical, >and it works just fine. With keyboard events, however, the 'key_pressed' >handle never even gets called! Do I need to do more than just >XtAddEventHandler? I think this is a problem with the DECwindows Window Manager...cf. the posting about xdbx on the DEC 3100 and my followup. There seems to be some problem getting keyboard focus to shift to new applications. Since you don't have focus, of course you won't get any KeyPress or other Key events. Anybody out there know the solution...or the problem, even? _______________________________________ Douglas Scott doug@dept.csci.unt.edu