caturing key pressed

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

caturing key pressed

pdigonzelli1
Hi all , I need to capture the key pressed in a Spec TextModel and ListModel. Can someone give orientation?

TIA


Ing. Pablo Digonzelli
Software Solutions
IP-Solutiones SRL
Metrotec SRL
25 de Mayo 521
Email: [hidden email]
[hidden email]
Cel: 5493815982714

Reply | Threaded
Open this post in threaded view
|

Re: caturing key pressed

jfabry

I don’t think there is a built-in way to do that. What you might do is register to keyboard events when one of these models gets the keyboard focus, and unregister when it loses focus. But I cannot give you any code for that, sorry.

On Jun 30, 2014, at 11:32 AM, Pablo R. Digonzelli <[hidden email]> wrote:

> Hi all , I need to capture the key pressed in a Spec TextModel and ListModel. Can someone give orientation?
>
> TIA
>
> Ing. Pablo Digonzelli
> Software Solutions
> IP-Solutiones SRL
> Metrotec SRL
> 25 de Mayo 521
> Email: [hidden email]
> [hidden email]
> Cel: 5493815982714
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile


Reply | Threaded
Open this post in threaded view
|

Re: caturing key pressed

pdigonzelli1
How can I know the widget has focus ? TIA


Ing. Pablo Digonzelli
Software Solutions
IP-Solutiones SRL
Metrotec SRL
25 de Mayo 521
Email: [hidden email]
[hidden email]
Cel: 5493815982714

----- Mensaje original -----
De: "Johan Fabry" <[hidden email]>
Para: "Pharo is welcome" <[hidden email]>
Enviados: Lunes, 30 de Junio 2014 13:42:26
Asunto: Re: [Pharo-users] caturing key pressed


I don’t think there is a built-in way to do that. What you might do is register to keyboard events when one of these models gets the keyboard focus, and unregister when it loses focus. But I cannot give you any code for that, sorry.

On Jun 30, 2014, at 11:32 AM, Pablo R. Digonzelli <[hidden email]> wrote:

> Hi all , I need to capture the key pressed in a Spec TextModel and ListModel. Can someone give orientation?
>
> TIA
>
> Ing. Pablo Digonzelli
> Software Solutions
> IP-Solutiones SRL
> Metrotec SRL
> 25 de Mayo 521
> Email: [hidden email]
> [hidden email]
> Cel: 5493815982714
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile



Reply | Threaded
Open this post in threaded view
|

Re: caturing key pressed

jfabry

Sorry, it’s been too long since I have been deep enough in that topic to be able to help you further.

On Jun 30, 2014, at 12:56 PM, Pablo R. Digonzelli <[hidden email]> wrote:

> How can I know the widget has focus ? TIA
>
>
> Ing. Pablo Digonzelli
> Software Solutions
> IP-Solutiones SRL
> Metrotec SRL
> 25 de Mayo 521
> Email: [hidden email]
> [hidden email]
> Cel: 5493815982714
>
> ----- Mensaje original -----
> De: "Johan Fabry" <[hidden email]>
> Para: "Pharo is welcome" <[hidden email]>
> Enviados: Lunes, 30 de Junio 2014 13:42:26
> Asunto: Re: [Pharo-users] caturing key pressed
>
>
> I don’t think there is a built-in way to do that. What you might do is register to keyboard events when one of these models gets the keyboard focus, and unregister when it loses focus. But I cannot give you any code for that, sorry.
>
> On Jun 30, 2014, at 11:32 AM, Pablo R. Digonzelli <[hidden email]> wrote:
>
>> Hi all , I need to capture the key pressed in a Spec TextModel and ListModel. Can someone give orientation?
>>
>> TIA
>>
>> Ing. Pablo Digonzelli
>> Software Solutions
>> IP-Solutiones SRL
>> Metrotec SRL
>> 25 de Mayo 521
>> Email: [hidden email]
>> [hidden email]
>> Cel: 5493815982714
>>
>
>
>
> ---> Save our in-boxes! http://emailcharter.org <---
>
> Johan Fabry   -   http://pleiad.cl/~jfabry
> PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile
>
>
>
>



---> Save our in-boxes! http://emailcharter.org <---

Johan Fabry   -   http://pleiad.cl/~jfabry
PLEIAD lab  -  Computer Science Department (DCC)  -  University of Chile