[haiku] Re: Caps Lock?

  • From: Pete Goodeve <pete.goodeve@xxxxxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Fri, 14 Dec 2012 16:48:28 -0800

On Thu, Dec 13, 2012 at 12:42:25PM -0500, Ryan Leavengood wrote:
> 
> 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.
> 
Thanks for pointing out the solution!

I've got it working, and have attached the new source to #2053.

The major difference is that i'm using the Ctrl key to enable the CapsLock
key.  My main problem has been that I hit CapsLock as well when I'm *aiming*
for Shift, so using that as the enabler wouldn't be much use to me!
Ctrl is one key further away, so it should be safe.

I expect to be a little less frustrated now! (:-))

        -- Pete --

Other related posts: