Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!clyde.concordia.ca!mcgill-vision!quiche!monching From: monching@quiche.cs.mcgill.ca (Patrick WONG) Newsgroups: comp.sys.mac.programmer Subject: How does one detect whether a modifier key is being held down? Keywords: Modifier key Message-ID: <5467@quiche.cs.mcgill.ca> Date: 2 Nov 90 02:06:03 GMT Organization: SOCS - Mcgill University, Montreal, Canada Lines: 19 Does anyone know if you can detect whether a modifier key is held down without having to press a character key or clicking the mouse? I know this is possible because MacPaint II will change the arrow to a hand for option key and magifying glass for a command key. I wish to do the samething. Can't seem to find anything in Inside Mac. I look up the stuff pertaining to keys, keyboard, and modifiers. It just says a modifier doesn't generate an event. So does this mean I have to generate my own application event (appEvt) and check the modifier flag. Or is there a toolbox global where all key press are stored? Thanks for any suggestions. pat -- patrick wong | McGill University monching@quiche.cs.mcgill.ca | School of Computer Science | Montreal, Quebec