Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!news.duke.edu!news-feed-1.peachnet.edu!gatech!howland.reston.ans.net!news.sprintlink.net!uunet!morgan.com!is1.is.morgan.com!is.morgan.com!kiisaka
From: kiisaka@is.morgan.com (Ken Iisaka)
Subject: Re: how to get Alt & Ctrl status (depressed or not)
Message-ID: <1995Feb28.101851@is.morgan.com>
Sender: news@is.morgan.com
Nntp-Posting-Host: bkis143
Organization: Or Lack Thereof
References:  <3ip74j$sp5@news.u.washington.edu>
Date: Tue, 28 Feb 1995 15:18:51 GMT
Lines: 22

In article <3ip74j$sp5@news.u.washington.edu>, szamos@saul4.u.washington.edu (Janos Szamosfalvi) writes:
|> Does anyone know how to get the status of Left/Right Ctrl/Alt keys 
|> in VisualWorks running under Windoze NT?   I want to check whether 
|> the left Alt key is depressed, etc.   

InputState default ctrlDown and
InputState default altDown

will give you a Boolean object indicating whether respective
keys are pressed.  No indication of which alt key or ctrl key is
pressed, since it is hardward dependent..

-- 
|  ###    ###  |  ###   ###   ###  |  ###    ###  |  ###   ###   ###  |
|  ###    ###  |  ###   ###   ###  |  ###    ###  |  ###   ###   ###  |
|  ###    ###  |  ###   ###   ###  |  ###    ###  |  ###   ###   ###  |
|  ###    ###  |  ###   ###   ###  |  ###    ###  |  ###   ###   ###  |
|    |    |    |    |    |    |    |    |    |    |    |    |    |    |
|  Ken Iisaka  |  (kiisaka@morgan.com)  |  Morgan Stanley & Co. Inc   |
|  1 Pierrepont Plz, Brooklyn, NY 11201 |   All disclaimers apply.    |
|____|____|____|____|____|____|____|____|____|____|____|____|____|____|___
"Smalltalk Goes Object Oriented" - INFORMATIONWEEK, August 8, 1994, pg. 58
