That is not supported by default (at least not on Win). Since you switch to another window/process usually this should not be intercepted/prevented by an application. But it is doable using a hook: http://stackoverflow.com/questions/1161053/capturing-keystrokes-without-focu... http://stackoverflow.com/questions/1346689/how-do-i-trap-windows-key-alttab-... Bye T.
Gesendet: Montag, 13. Januar 2014 um 12:50 Uhr Von: "roberto.minelli@usi.ch" <roberto.minelli@usi.ch> An: Pharo-dev <pharo-dev@lists.pharo.org> Betreff: Re: [Pharo-dev] Detect when Pharo loses focus
I wasnât able to find something like that.
There is MorphLostFocus, bit is not triggered by World. And not triggered when Pharo loose focus.
Cheers, R
On Jan 13, 2014, at 12:00 PM, Benjamin <benjamin.vanryseghem.pharo@gmail.com> wrote:
Did World trigger a keyboard focus lost announcement?
Ben
On 13 Jan 2014, at 06:49, roberto.minelli@usi.ch wrote:
Hi guys,
I am trying to detect when a user switches her focus from Pharo to another app.
In short Iâd like to know when the user switches (i.e., atl+tab) from the Pharo application to another application, losing focus from the development.
I looked into Morphic and I was able to tell when the mouse goes outside the Pharo window. Unfortunately this technique does not work when the user uses alt+tab to switch to another app, since the last mouse event is not outside the Pharo window.
Any suggestion where to look?
Thanks in advance, R