Newsgroups: comp.lang.smalltalk
Path: cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!news2.near.net!news.mathworks.com!udel!gatech!howland.reston.ans.net!EU.net!chsun!hslrswi!news
From: dbrunner@hasler.ascom.ch (Dierk Brunner)
Subject: Re: how to get Alt & Ctrl status (depressed or
X-Nntp-Posting-Host: voyager.hasler.ascom.ch
Message-ID: <1995Feb27.115608.28846@hasler.ascom.ch>
Sender: news@hasler.ascom.ch
Reply-To: dbrunner@hasler.ascom.ch
Organization: Ascom Hasler AG, CH-3014 Bern, Switzerland
References: <3ip74j$sp5@news.u.washington.edu>
Date: Mon, 27 Feb 1995 11:56:08 GMT
Lines: 21

In article 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.   
>
>This would be a piece of cake in Pascal under DOS, but the rules seem 
>to be a bit different here.
>
>Thanks, Janos


You can ask the default InputState instance if the shift, ctrl, alt
or meta key is down.

InputState default shiftDown
InputState default ctrlDown
InputState default altDown
InputState default metaDown

	Dierk

