On Thu, Dec 13, 2012 at 12:42:25PM -0500, Ryan Leavengood wrote: > On Thu, Dec 13, 2012 at 2:54 AM, Pete Goodeve <pete.goodeve@xxxxxxxxxxxx> > wrote: > > > > However, unless you've seen something that I haven't, I don't think > > it's possible to suppress CapsLock with a filter. > > I guess I wasn't clear when I referred to that ticket. Toward the > bottom of the ticket is a comment from myself where I suggest a > theoretical idea for how to solve this. The filter can watch for > B_MODIFIERS_CHANGED and check the mask for caps lock being on, and if > it is (and wasn't already on, the state probably needs to be tracked) > it can use the set_keyboard_locks function to turn it right back off. > I'm not 100% sure this will work, but it sounds reasonable in theory. > Ahh, you did see something I hadn't... I missed the existence of that global function. You're right, that doesn't look hard. I'll try that and see how it works. Thanks, -- Pete --