2014-11-21 16:22 GMT+01:00 Aliaksei Syrel <alex.sy...@gmail.com>:

> Hi,
>
> Thanks for the fast answer. But keyDown or keyUp are triggered only for
> not modifier keys (Tab, space, [0-9a-Z]). When I press Shift, keyDown is
> not triggered. :(
>
> Cheers,
> Alex
>
> On Fri, Nov 21, 2014 at 4:12 PM, Guillermo Polito <
> guillermopol...@gmail.com> wrote:
>
>> Hi,
>>
>> I've some hints!
>>
>> Try listening to the keyDown and keyUp events of a morph. And take a look
>> at the #key message of a keyboard event.
>>
>> Cheers,
>> Guille
>>
>> On Fri, Nov 21, 2014 at 4:06 PM, Aliaksei Syrel <alex.sy...@gmail.com>
>> wrote:
>>
>>> Hi,
>>>
>>> In our project we would like to trigger some actions when user presses
>>> down/up Shift button. But we didn't find how to do it. It seems that such
>>> keys as Shift, Capslock, Ctrl are event modifiers in Pharo, that apply on
>>> already existing events (in HandMorph>>generateKeyboardEvent: evtBuf).
>>>
>>> Do you have any ideas or maybe have experience concerning described
>>> problem?
>>> Thanks in advance.
>>>
>>> Cheers,
>>> Alex
>>>
>>
>>
>
>From KeyPrinterMorph:


handlesKeyboard: evt
    ^ true

keyDown: anEvent
    self inform: anEvent asString

Reply via email to