linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] input - Add Euro and Dollar keys
@ 2007-10-25 12:56 Carlos Corbacho
  2007-10-26  4:41 ` Dmitry Torokhov
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos Corbacho @ 2007-10-25 12:56 UTC (permalink / raw)
  To: Dmitry Torokhov; +Cc: linux-input

From: Carlos Corbacho <cathectic@gmail.com>

Most newer Acer laptops (from 2005 onwards) now ship with an extra Dollar
and Euro key either side of the 'Up' arrow. These cannot be mapped in the 
traditional way, since they are not combination keys.

Signed-off-by: Carlos Corbacho <cathectic@gmail.com>
---
Dimitry,

1) This patch is based against Linus' tree, since your 
include/linux/input.h is out of date.

2) I am aware that there was some discussion over whether KEY_EURO should
become KEY_CURRENCY, due to concerns that Acer may one day release a laptop
with a different currency key instead of the Euro.

If you would prefer this patch to be redone with KEY_CURRENCY instead, then
I am happy to do so, if it means this will go upstream.

diff --git a/include/linux/input.h b/include/linux/input.h
index 6226892..b45f240 100644
--- a/include/linux/input.h
+++ b/include/linux/input.h
@@ -527,6 +527,9 @@ struct input_absinfo {
 #define KEY_SPELLCHECK		0x1b0   /* AL Spell Check */
 #define KEY_LOGOFF		0x1b1   /* AL Logoff */
 
+#define KEY_DOLLAR		0x1b2
+#define KEY_EURO		0x1b3
+
 #define KEY_DEL_EOL		0x1c0
 #define KEY_DEL_EOS		0x1c1
 #define KEY_INS_LINE		0x1c2

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-11-13 13:53 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-25 12:56 [PATCH] input - Add Euro and Dollar keys Carlos Corbacho
2007-10-26  4:41 ` Dmitry Torokhov
2007-11-13 13:53   ` Carlos Corbacho

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).