Re: [dev] [st] shift-insert patch (more general: key.mask and state)

From: Aurélien Aptel <>
Date: Mon, 1 Aug 2011 17:55:25 +0200

On Mon, Aug 1, 2011 at 1:34 PM, anonymous <> wrote:
> I think my patch is better.  There is no special case for 0 mask and state
> and when we match for Ctrl and Shift it works only when they both are
> pressed.  With your patch it will work for Ctrl only or for Shift only.

When a key in config.h has mask = 0 it's matched with <any modifier>,
not <no modifier>.
Instead we could:

#define XK_ANY_MOD 0

When numlock is on, each keypress has a state of 0x10. I suppose
nobody actually use keybindings involving numlock so kmap() could
clear the numlock mask from state before looking for a match in key[].
Received on Mon Aug 01 2011 - 17:55:25 CEST

This archive was generated by hypermail 2.2.0 : Mon Aug 01 2011 - 18:00:07 CEST