* Keyboard CapsShift Lock
@ 2007-08-14 9:00 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2007-08-14 9:00 UTC (permalink / raw)
To: akpm, kernel, dtor, linux-input
Hi,
There exists a CapsShift lock called KG_CAPSSHIFT, but no associated
lock/slock, here is a patch.
Samuel
Add CapsShift lock and slock.
Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
diff --git a/include/linux/keyboard.h b/include/linux/keyboard.h
index d97066f..61f12d4 100644
--- a/include/linux/keyboard.h
+++ b/include/linux/keyboard.h
@@ -426,6 +426,7 @@ extern int unregister_keyboard_notifier(struct notifier_block *nb);
#define K_SHIFTRLOCK K(KT_LOCK,KG_SHIFTR)
#define K_CTRLLLOCK K(KT_LOCK,KG_CTRLL)
#define K_CTRLRLOCK K(KT_LOCK,KG_CTRLR)
+#define K_CAPSSHIFTLOCK K(KT_LOCK,KG_CAPSSHIFT)
#define K_SHIFT_SLOCK K(KT_SLOCK,KG_SHIFT)
#define K_CTRL_SLOCK K(KT_SLOCK,KG_CTRL)
@@ -435,8 +436,9 @@ extern int unregister_keyboard_notifier(struct notifier_block *nb);
#define K_SHIFTR_SLOCK K(KT_SLOCK,KG_SHIFTR)
#define K_CTRLL_SLOCK K(KT_SLOCK,KG_CTRLL)
#define K_CTRLR_SLOCK K(KT_SLOCK,KG_CTRLR)
+#define K_CAPSSHIFT_SLOCK K(KT_SLOCK,KG_CAPSSHIFT)
-#define NR_LOCK 8
+#define NR_LOCK 9
#define K_BRL_BLANK K(KT_BRL, 0)
#define K_BRL_DOT1 K(KT_BRL, 1)
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2007-08-14 9:00 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-08-14 9:00 Keyboard CapsShift Lock Samuel Thibault
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).