Hi All,
Sensor shiftPressed no longer functions. Is there a replacement? If so, what is it, and can we mark shiftPressed as deprecated? If not, can it be fixed? It's the escape key in the debugger's runUntil, and useful for turning off display update when things are running for a very long time. _,,,^..^,,,_ best, Eliot
On 27-12-2016, at 10:51 AM, Eliot Miranda eliot.miranda@gmail.com wrote:
Hi All,
Sensor shiftPressed no longer functions. Is there a replacement?
At least for Scratch not-quite-events, ‘self currentHand lastEvent’ works to get the most recent event. I use it in ScratchFrameMorph>buildShareMenu: for example - ‘self currentHand lastEvent shiftPressed ifTrue:[ aDockingBarMenuMorph addLine’….
There’s also the option of just sucking in my KeyboardStateWatcher that listens to incoming events and tracks the currently pressed keys etc.
tim -- tim Rowledge; tim@rowledge.org; http://www.rowledge.org/tim Useful Latin Phrases:- Gramen artificiosum odi = I hate Astroturf.
On Tue, Dec 27, 2016 at 7:51 PM, Eliot Miranda eliot.miranda@gmail.com wrote:
Hi All,
Sensor shiftPressed no longer functions.
No? Which platform / vm?
This works for me:
(UpdatingStringMorph on: Sensor selector: #shiftPressed) openInHand
... albeit on the Mac you have to wiggle the mouse too because the Cocoa VM does not send keyboard events for shift.
can it be fixed?
I'm sure the VM can be fixed ;)
- Bert -
On Wed, Dec 28, 2016 at 5:49 AM, Bert Freudenberg bert@freudenbergs.de wrote:
On Tue, Dec 27, 2016 at 7:51 PM, Eliot Miranda eliot.miranda@gmail.com wrote:
Hi All,
Sensor shiftPressed no longer functions.
No? Which platform / vm?
This works for me:
(UpdatingStringMorph on: Sensor selector: #shiftPressed) openInHand
... albeit on the Mac you have to wiggle the mouse too because the Cocoa VM does not send keyboard events for shift.
Ah! So that's the problem :-/. Thanks!
can it be fixed?
I'm sure the VM can be fixed ;)
Indeed :-)
- Bert -
_,,,^..^,,,_ best, Eliot
I do have a possible fix, trying to connect to Eliot to do some testing
On Wed, Dec 28, 2016 at 5:49 AM, Bert Freudenberg bert@freudenbergs.de wrote:
On Tue, Dec 27, 2016 at 7:51 PM, Eliot Miranda eliot.miranda@gmail.com wrote:
Hi All,
Sensor shiftPressed no longer functions.
No? Which platform / vm?
This works for me:
(UpdatingStringMorph on: Sensor selector: #shiftPressed) openInHand
... albeit on the Mac you have to wiggle the mouse too because the Cocoa VM does not send keyboard events for shift.
can it be fixed?
I'm sure the VM can be fixed ;)
- Bert -
squeak-dev@lists.squeakfoundation.org