summaryrefslogtreecommitdiff
path: root/keycodes
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2013-04-20 12:02:25 -0400
committerSergey V. Udaltsov <svu@gnome.org>2013-04-20 21:21:55 +0100
commit690ea60dcb6793879489c17ab5d85afd272fa0f7 (patch)
tree75dec6bb0aba7636eb2325c205472e1bf18d7396 /keycodes
parent099742beb537b3c2c18bd6269fc2c1d4d956689c (diff)
downloadxkeyboard-config-690ea60dcb6793879489c17ab5d85afd272fa0f7.tar.gz
add support for the OLPC mechanical non-membrane keyboard
Patch updated against current tree. > From: Paul Fox <pgf@laptop.org> > Date: Tue, 20 Jul 2010 16:22:40 -0400 > Subject: [PATCH] add support for the OLPC "mechanical" (non-membrane) keyboard > model(s). to aid in this, add keycodes/olpc with aliases to avoid needing to > use BKSL and TLDE, which don't appear anywhere near their "traditional" > position on the olpcm mechanical keyboards.
Diffstat (limited to 'keycodes')
-rw-r--r--keycodes/Makefile.am1
-rw-r--r--keycodes/olpc23
2 files changed, 24 insertions, 0 deletions
diff --git a/keycodes/Makefile.am b/keycodes/Makefile.am
index 9c5a386..78a0355 100644
--- a/keycodes/Makefile.am
+++ b/keycodes/Makefile.am
@@ -12,6 +12,7 @@ fujitsu \
hp \
ibm \
macintosh \
+olpc \
sony \
sun \
xfree86 \
diff --git a/keycodes/olpc b/keycodes/olpc
new file mode 100644
index 0000000..0d7724b
--- /dev/null
+++ b/keycodes/olpc
@@ -0,0 +1,23 @@
+
+// OLPC's mechanical keyboard moves several keys to the AA row. make
+// them easier to write symbol files naturally.
+
+// see http://wiki.laptop.org/go/OLPC_English_Non-membrane_Keyboard
+// and http://wiki.laptop.org/go/OLPC_Spanish_Non-membrane_Keyboard
+
+default
+xkb_keycodes "olpc" {
+
+ alias <AE00> = <TLDE>; // many OLPC keyboards don't put tilde there
+ alias <AC12> = <BKSL>; // on model olpc, physical position of BKSL
+
+};
+
+default
+xkb_keycodes "olpcm" {
+
+ alias <AA02> = <BKSL>; // on model olpcm, new physical position of BKSL
+ alias <AA06> = <AE12>; // on model olpcm, new physical position of =+
+ alias <AA07> = <AC11>; // on model olpcm, new physical position of '"
+
+};