Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cornell!uw-beaver!rice!sun-spots-request From: mcvax!front.se!per@uunet.uu.net (Per Lindberg) Newsgroups: comp.sys.sun Subject: Catching kbd input in a canvas Keywords: Windows Message-ID: <361@front.se> Date: 9 Mar 89 04:22:42 GMT Sender: usenet@rice.edu Organization: Front Capital Systems, Stockholm, Sweden Lines: 21 Approved: Sun-Spots@rice.edu Original-Date: 1 Mar 89 11:30:12 GMT X-Sun-Spots-Digest: Volume 7, Issue 189, message 6 of 17 This is a follow-up on my prevoius question about kbd input in canvas. My problem was that I wanted to catch keyboard text in a canvas, but still have the Expose (L5) and Open (L7) keys work on the frame. I tried the following, which losed: WIN_CONSUME_PICK_EVENT, WIN_LEFT_KEYS, WIN_CONSUME_KBD_EVENT, WIN_ASCII_EVENTS, Ray Kreisel (mond@sun.com) came up with a winning incantation. Try: WIN_CONSUME_PICK_EVENTS, WIN_NO_EVENTS,MS_LEFT, LOC_DRAG,LOC_MOVE, WIN_IN_TRANSIT_EVENTS, WIN_UP_EVENTS, 0, WIN_CONSUME_KBD_EVENTS, WIN_ASCII_EVENTS,WIN_LEFT_KEYS, 0, Thanks, Ray! /Per Lindberg (the mad programmer)