Login  Register

Re: Getting whether specific key is currently pressed

Posted by Jan Blizničenko on Feb 13, 2016; 7:26pm
URL: https://forum.world.st/Getting-whether-specific-key-is-currently-pressed-tp4877401p4877420.html

That's true, but I'm not sure that modifying TRMorph, TRMouseDragStart and TRMouseDragEnd is the right way to go here, so I'm interested in finding simpler solution if there is any.

Jan

Peter Uhnák wrote
Mouse and keyboard events are usually captured by TRMorph and then
converted into Roassal events, so check there.

Peter

On Sat, Feb 13, 2016 at 4:06 PM, Jan Blizničenko <[hidden email]>
wrote:

> Hello
>
> I would like to ask whether is there any way to directly find out if
> specific key (shift in my case) is currently pressed. I am trying to
> implement own multi-selection of elements drawn on Roassal canvas, but I do
> not receive original MouseClick/Drag/whatever event with shiftKeyPressed,
> but I receive only Roassal selection event without this kind of
> information.
> It would require lots of modifications on Roassal part to forward such info
> (although it would be possible I suppose), so I am looking for a way to
> bypass it.
>
> Any help is appreciated.
>
> Jan Blizničenko
>
>
>
> --
> View this message in context:
> http://forum.world.st/Getting-whether-specific-key-is-currently-pressed-tp4877401.html
> Sent from the Pharo Smalltalk Users mailing list archive at Nabble.com.
>
>