Re: [Pharo-users] Getting whether specific key is currently pressed

2016-02-14 Thread Jan Blizničenko
Ok ok, you all have convinced me that this should be solved on Roassal part, not by calling such low level stuff like Sensor. I'll try to make and propose some changes in Roassal to forward such information. And, Alex, my case is that when I just drag box around items on cavas (do marquee selectio

Re: [Pharo-users] Getting whether specific key is currently pressed

2016-02-14 Thread Alexandre Bergel
Hi! I do not have my laptop, so I cannot try. This is a field where Roassal is weak indeed. Let us know if you come with a solution. What is your case? Having a selection box only when you press shift and drag and drop? Once back from holidays, I will check how it is done in JavaFX. Alexand

Re: [Pharo-users] Getting whether specific key is currently pressed

2016-02-13 Thread Henrik Nergaard
mouse event in Roassal. Best regards, Henrik -Original Message- From: Pharo-users [mailto:pharo-users-boun...@lists.pharo.org] On Behalf Of Jan Bliznicenko Sent: Saturday, February 13, 2016 8:27 PM To: pharo-users@lists.pharo.org Subject: Re: [Pharo-users] Getting whether specific key is

Re: [Pharo-users] Getting whether specific key is currently pressed

2016-02-13 Thread Jan Blizničenko
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 Roassa

Re: [Pharo-users] Getting whether specific key is currently pressed

2016-02-13 Thread Peter Uhnák
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 wrote: > Hello > > I would like to ask whether is there any way to directly find out if > specific key (shift in my case) is c

[Pharo-users] Getting whether specific key is currently pressed

2016-02-13 Thread Jan Blizničenko
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