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 |
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 |
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 |
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 |
Free forum by Nabble | Edit this page |