fix for capslock bound to other modifiers. i think this is okay?
strip LockMask instead of what caps_lock is bound to.
This commit is contained in:
parent
4548d40c0d
commit
b1c209c174
1 changed files with 4 additions and 1 deletions
|
@ -108,7 +108,10 @@ guint modkeys_only_modifier_masks(guint mask)
|
||||||
{
|
{
|
||||||
mask &= ALL_MASKS;
|
mask &= ALL_MASKS;
|
||||||
/* strip off these lock keys. they shouldn't affect key bindings */
|
/* strip off these lock keys. they shouldn't affect key bindings */
|
||||||
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_CAPSLOCK);
|
mask &= ~LockMask; /* use the LockMask, not what capslock is bound to,
|
||||||
|
because you could bind it to something else and it
|
||||||
|
should work as that modifier then. i think capslock
|
||||||
|
is weird in xkb. */
|
||||||
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_NUMLOCK);
|
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_NUMLOCK);
|
||||||
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_SCROLLLOCK);
|
mask &= ~modkeys_key_to_mask(OB_MODKEY_KEY_SCROLLLOCK);
|
||||||
return mask;
|
return mask;
|
||||||
|
|
Loading…
Reference in a new issue