Path: utzoo!mnetor!uunet!husc6!bloom-beacon!gatech!purdue!i.cc.purdue.edu!j.cc.purdue.edu!pur-ee!uiucdcs!uxc.cso.uiuc.edu!uxe.cso.uiuc.edu!leonardr From: leonardr@uxe.cso.uiuc.edu Newsgroups: comp.sys.mac Subject: Re: Bug in LaserWriter Driver 5.0 Message-ID: <46100077@uxe.cso.uiuc.edu> Date: 15 Feb 88 17:44:00 GMT References: <6975@agate.BERKELEY.EDU> Lines: 34 Nf-ID: #R:agate.BERKELEY.EDU:6975:uxe.cso.uiuc.edu:46100077:000:1913 Nf-From: uxe.cso.uiuc.edu!leonardr Feb 15 11:44:00 1988 milt@mist.cs.orst.edu(Milt Sagan) writes in comp.sys.mac >When a user issues a cmdKey equivalent of copy (paste) for a desk accessory, >does the DA get a parameter block csCode equal to accCopy (accPaste)? > >The DA I'm writing will respond to copy and paste commands when the user >selects them with the mouse. However, when a command key equivalent is >issued I must interrupt a keyDown event in order to respond correctly. >I had expected to receive an accCopy or accPaste. >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ >Was I incorrect about my assumption, or is there something I should have >done to inform the system, Desk Manager or whatever, that the DA can handle >key equivalents for the Edit menu commands? > >I'm writing the DA in Lightspeed C so the drvrEMask includes keyDown events >(otherwise I would not be able to respond to such events). My SigmaEdit DA (which is also written in Lightspeed C) also has to detect the Edit command based on the current keydown event and detect it that way. This, however, poses a problem for international use (except that to my knowledge and experience with the int'l system the cmd keys for the Edit menu are still the same). +---------------------------------+-----------------------------------+ + + Any thing I say may be taken as + + Leonard Rosenthol + fact, then again you might decide+ + President, LazerWare, inc. + that it really isn't, so you + + + never know, do you?? + + leonardr@uxe.cso.uiuc.edu + + + GEnie: MACgician + + + Delphi: MACgician + + + + + +---------------------------------+-----------------------------------+