Rubric RubKeystroke

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Rubric RubKeystroke

Peter Uhnak
Hi,

is it possible to catch pressed key in RubTextFieldArea?

I tried

~~~~~~~~~~~~~~~~~~~
|fieldArea|
fieldArea := RubTextFieldArea new
takeKeyboardFocus.
fieldArea announcer when: RubKeystroke do: [ :rbEvent | rbEvent inspect ].

fieldArea openInWindow.
~~~~~~~~~~~~~~~~~~~~

but it doesn't seem to be fired. As I don't see any users of RubKeystroke I'm not sure what is the correct approach.

Thanks,
Peter
Reply | Threaded
Open this post in threaded view
|

Re: Rubric RubKeystroke

Pharo Smalltalk Users mailing list

I’ve opened an issue 15407
try with Rubric-AlainPlantec.188 which should fixe it (in Pharo/Rubric).
Cheers
Alain


On 25 Apr 2015, at 22:12, Peter Uhnák <[hidden email]> wrote:

Hi,

is it possible to catch pressed key in RubTextFieldArea?

I tried

~~~~~~~~~~~~~~~~~~~
|fieldArea|
fieldArea := RubTextFieldArea new
takeKeyboardFocus.
fieldArea announcer when: RubKeystroke do: [ :rbEvent | rbEvent inspect ].

fieldArea openInWindow.
~~~~~~~~~~~~~~~~~~~~

but it doesn't seem to be fired. As I don't see any users of RubKeystroke I'm not sure what is the correct approach.

Thanks,
Peter

Reply | Threaded
Open this post in threaded view
|

Re: Rubric RubKeystroke

Peter Uhnak
This fixed it, thanks!

Peter

On Sun, Apr 26, 2015 at 10:21 AM, Alain Plantec via Pharo-users <[hidden email]> wrote:


---------- Forwarded message ----------
From: Alain Plantec <[hidden email]>
To: Any question about pharo is welcome <[hidden email]>
Cc: 
Date: Sun, 26 Apr 2015 10:21:25 +0200
Subject: Re: [Pharo-users] Rubric RubKeystroke

I’ve opened an issue 15407
try with Rubric-AlainPlantec.188 which should fixe it (in Pharo/Rubric).
Cheers
Alain


On 25 Apr 2015, at 22:12, Peter Uhnák <[hidden email]> wrote:

Hi,

is it possible to catch pressed key in RubTextFieldArea?

I tried

~~~~~~~~~~~~~~~~~~~
|fieldArea|
fieldArea := RubTextFieldArea new
takeKeyboardFocus.
fieldArea announcer when: RubKeystroke do: [ :rbEvent | rbEvent inspect ].

fieldArea openInWindow.
~~~~~~~~~~~~~~~~~~~~

but it doesn't seem to be fired. As I don't see any users of RubKeystroke I'm not sure what is the correct approach.

Thanks,
Peter



Reply | Threaded
Open this post in threaded view
|

Re: Rubric RubKeystroke

stepharo
In reply to this post by Pharo Smalltalk Users mailing list
you are cool alain.

Stef

Le 26/4/15 11:16, Alain Plantec via Pharo-users a écrit :