[BUG]HandMorph =>Wonderland and use of controlKeyPressed

Bob Arning arning at charm.net
Tue Aug 8 18:18:40 UTC 2000


On Tue, 08 Aug 2000 10:58:42 -0700 Tim Rowledge <tim at sumeru.stanford.edu> wrote:
>> I'd recommend that change from a usability perspective, if nothing else.
>> As a user/programmer if I ask if the control or shift keys are pressed I
>> mean right now, not at some indeterminate point of time in the past.
>Not neccessarily; it's entirely plausible you might need the metakey
>state at the time that some keyboard or mouse event was recorded.
>Consider the class KeyboardBuffer for example.

I think it's clear that both are useful. Asking an event for button or key state should return the state at the time the event happened. Asking an instance of InputSensor for the same information should return the state now.

Cheers,
Bob





More information about the Squeak-dev mailing list