On Sat, 21 Feb 2009, Luke Iannini wrote:

Yo - anyone have any ideas on getting the focus state of a window in Pd? I want to only enable key commands when the relevant window is focused - I have lots of miniature applications and it makes much more sense to treat them independently - I think the global nature of keystroke handling is what keeps me from every really using it!
(And, I know [tot] can tell me when a window is focused, but not when
it's unfocused, meaning I'd need a [tot] in every single window. no
good)

use bind on <FocusOut> instead of <FocusIn>.

 _ _ __ ___ _____ ________ _____________ _____________________ ...
| Mathieu Bouchard - tél:+1.514.383.3801, Montréal, Québec
_______________________________________________
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list

Reply via email to