summaryrefslogtreecommitdiff
path: root/symbols/keypad
diff options
context:
space:
mode:
authorSergey V. Udaltsov <svu@localhost.localdomain>2008-06-12 21:11:29 +0100
committerSergey V. Udaltsov <svu@localhost.localdomain>2008-06-12 21:11:29 +0100
commit491a9871bac03505304943e7174ef4418b77ad6b (patch)
tree8d129fcd33c357b9f328f265db86e82f0132cc91 /symbols/keypad
parent35a8edb2071df08c12f5682209e6dce37222e2c3 (diff)
downloadxkeyboard-config-491a9871bac03505304943e7174ef4418b77ad6b.tar.gz
added keypad:phone_hex, b.fd.o#16298
Diffstat (limited to 'symbols/keypad')
-rw-r--r--symbols/keypad45
1 files changed, 45 insertions, 0 deletions
diff --git a/symbols/keypad b/symbols/keypad
index 897ee05..9c56d0a 100644
--- a/symbols/keypad
+++ b/symbols/keypad
@@ -493,3 +493,48 @@ xkb_symbols "ossnumber_wang" {
key <KP0> { [ KP_Insert, KP_0, apostrophe, 0x1002195 ] }; // <insert> 0 ' ↕
};
+
+// ATM/phone-style hexadecimal numpad
+// by Roland Kaufmann <rlndkfmn at gmail dot com>
+// License: BSD
+// Main numbers follows the traditions from ATMs and phones with
+// numbers increasing downwards to the right. (It is easier to
+// change the keyboard layout than to reprogram your local ATM;
+// also cell-phones are becoming more common while calculators are
+// becoming more rare).
+// Third-level gives the letters used in hexadecimal numbers, or
+// columns in small spreadsheets. Equal is added to start formulas
+// (most numpads don't have their own equal key), comma as a list
+// separator and colon to enter times and ranges.
+partial keypad_keys
+xkb_symbols "phone_hex" {
+ // NumLock, Enter
+ include "keypad(core)"
+
+ key.type[Group1]="FOUR_LEVEL_MIXED_KEYPAD" ;
+
+ // None NumLock AltGr
+ // symbol row
+ key <KPDV> { [ KP_Divide, slash, parenleft ] };
+ key <KPMU> { [ KP_Multiply, asterisk, parenright ] };
+ key <KPSU> { [ KP_Subtract, minus, dollar ] };
+
+ // upper row
+ key <KP7> { [ KP_Home, KP_1, A ] };
+ key <KP8> { [ KP_Up, KP_2, B ] };
+ key <KP9> { [ KP_Prior, KP_3, C ] };
+
+ // home row
+ key <KP4> { [ KP_Left, KP_4, D ] };
+ key <KP5> { [ KP_Begin, KP_5, E ] };
+ key <KP6> { [ KP_Right, KP_6, F ] };
+ key <KPAD> { [ KP_Add, plus, comma ] };
+
+ // lower row
+ key <KP1> { [ KP_End, KP_7, equal ] };
+ key <KP2> { [ KP_Down, KP_8, x ] };
+ key <KP3> { [ KP_Next, KP_9, colon ] };
+
+ // decimal row
+ key <KP0> { [ KP_Insert, KP_0, backslash ] };
+};