#2053: returning B_SKIP_MESSAGE in my filter let capslocks get through anyway ------------------------------------+--------------------------- Reporter: stpere | Owner: leavengood Type: bug | Status: in-progress Priority: normal | Milestone: R1 Component: Servers/input_server | Version: R1/pre-alpha1 Resolution: | Keywords: Blocked By: | Blocking: Has a Patch: 0 | Platform: All ------------------------------------+--------------------------- Comment (by Pete): On Ryan's suggestion I took a look at this, and have got it working to my satisfaction. I chose to use the Ctrl key, rather that Shift, as the enabler, because a lot of my accidental CapsLocks are when I was aiming for the Shift! Ctrl is one key further away, so should not be hit by mistake. Source attached as CapsLockFilter.2.cpp. The original approach -- looking for Key Down/Up messages for Shift -- doesn't work, because modifier keys don't send these messages. Instead, this code looks directly at the state when B_MODIFIERS_CHANGED is sent. -- Ticket URL: <http://dev.haiku-os.org/ticket/2053#comment:9> Haiku <http://dev.haiku-os.org> Haiku - the operating system.