2009/9/27 Tudor Girba <[email protected]>:
> Hi,
>
> How can I check whether a certain key is pressed (for example, a
> modifier like Shift)?
>
Depends on context. In Morphic, just take an event (mouse event or
keyboard event) and
send #shiftPressed, or #controlKeyPressed, or whatever.

Another way is to ask the Sensor for same things, but i wouldn't do
that, because
to my opinion this is the wrong way, because Sensor is low-level
object, which should be
hidden from the eyes of developer, and normally, if you need to use
it, it means that you doing something wrong :)


> Cheers,
> Doru
>
>
> --
> www.tudorgirba.com
>
> "If you interrupt the barber while he is cutting your hair, you will
> end up with a messy haircut."
>
>
> _______________________________________________
> Pharo-project mailing list
> [email protected]
> http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project
>



-- 
Best regards,
Igor Stasenko AKA sig.

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to