input - Add Euro and Dollar keys
Subsystems (2)
PATCH 1/1 input - Add Euro and Dollar keys
From: Carlos Corbacho <[email protected]>
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.
---
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.
include/linux/input.h +3 -0
@@ -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
Quoted 5 lines · Carlos Corbacho
From: Carlos Corbacho <[email protected]>
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.
Applied, thank you Carlos. I tought about KEY_CURRENCY some more and I don't think it would work well in this case.
Signature · 1 line
Dmitry
Dmitry,
Quoted 6 lines · On Friday 26 October 2007 05:41:25 Dmitry Torokhov wrote:
Quoted 3 lines
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.
Applied, thank you Carlos. I tought about
KEY_CURRENCYsome more and I don't think it would work well in this case.
Unfortunately, my patch has a small problem, in that setkeycodes won't accept the values for my laptop keyboard (since they are obviously > 256).
Is there another way around this (besides submitting another patch to move the keys to lower keycodes - e.g. something in the 246-255 range)?
-Carlos
Signature · 3 lines
E-Mail: [email protected] Web: strangeworlds.co.uk GPG Key ID: 0x23EE722D