aboutsummaryrefslogtreecommitdiffstats
path: root/res/keyboard/layout
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-08-17 14:55:02 +0200
committerMattias Andrée <maandree@operamail.com>2014-08-17 14:55:02 +0200
commit271510ab29ddbabeb46e00e1efff0d829ee58b08 (patch)
treeeefdedc3f68bddafbc4110672a30d5a1fe084b49 /res/keyboard/layout
parentm + compose is dead (diff)
downloadmds-271510ab29ddbabeb46e00e1efff0d829ee58b08.tar.gz
mds-271510ab29ddbabeb46e00e1efff0d829ee58b08.tar.bz2
mds-271510ab29ddbabeb46e00e1efff0d829ee58b08.tar.xz
add some common keyboard layout data
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r--res/keyboard/layout/common/base4
-rw-r--r--res/keyboard/layout/common/caps_is_ctrl3
-rw-r--r--res/keyboard/layout/common/control37
-rw-r--r--res/keyboard/layout/common/control_keys84
-rw-r--r--res/keyboard/layout/common/keypad72
-rw-r--r--res/keyboard/layout/common/latin12
6 files changed, 212 insertions, 0 deletions
diff --git a/res/keyboard/layout/common/base b/res/keyboard/layout/common/base
new file mode 100644
index 0000000..07f03e6
--- /dev/null
+++ b/res/keyboard/layout/common/base
@@ -0,0 +1,4 @@
+include "control_keys"
+include "keypad"
+include "control"
+
diff --git a/res/keyboard/layout/common/caps_is_ctrl b/res/keyboard/layout/common/caps_is_ctrl
new file mode 100644
index 0000000..e73032e
--- /dev/null
+++ b/res/keyboard/layout/common/caps_is_ctrl
@@ -0,0 +1,3 @@
+<keycode 29> : <hyper>
+<keycode 58> : <left ctrl>
+
diff --git a/res/keyboard/layout/common/control b/res/keyboard/layout/common/control
new file mode 100644
index 0000000..9c4da58
--- /dev/null
+++ b/res/keyboard/layout/common/control
@@ -0,0 +1,37 @@
+<ctrl keycode 2> : <letter 1>
+<ctrl keycode 3> : <letter 2>
+<ctrl keycode 4> : <letter 3>
+<ctrl keycode 5> : <letter 4>
+<ctrl keycode 6> : <letter 5>
+<ctrl keycode 7> : <letter 6>
+<ctrl keycode 8> : <letter 7>
+<ctrl keycode 9> : <letter 8>
+<ctrl keycode 10> : <letter 9>
+<ctrl keycode 11> : <letter 0>
+<ctrl keycode 16> : <letter q>
+<ctrl keycode 17> : <letter w>
+<ctrl keycode 18> : <letter e>
+<ctrl keycode 19> : <letter r>
+<ctrl keycode 20> : <letter t>
+<ctrl keycode 21> : <letter y>
+<ctrl keycode 22> : <letter u>
+<ctrl keycode 23> : <letter i>
+<ctrl keycode 24> : <letter o>
+<ctrl keycode 25> : <letter p>
+<ctrl keycode 30> : <letter a>
+<ctrl keycode 31> : <letter s>
+<ctrl keycode 32> : <letter d>
+<ctrl keycode 33> : <letter f>
+<ctrl keycode 34> : <letter g>
+<ctrl keycode 35> : <letter h>
+<ctrl keycode 36> : <letter j>
+<ctrl keycode 37> : <letter k>
+<ctrl keycode 38> : <letter l>
+<ctrl keycode 44> : <letter z>
+<ctrl keycode 45> : <letter x>
+<ctrl keycode 46> : <letter c>
+<ctrl keycode 47> : <letter v>
+<ctrl keycode 48> : <letter b>
+<ctrl keycode 49> : <letter n>
+<ctrl keycode 50> : <letter m>
+
diff --git a/res/keyboard/layout/common/control_keys b/res/keyboard/layout/common/control_keys
new file mode 100644
index 0000000..152c3b5
--- /dev/null
+++ b/res/keyboard/layout/common/control_keys
@@ -0,0 +1,84 @@
+<keycode 1> : <esc>
+
+<keycode 59> : <f1>
+<keycode 60> : <f2>
+<keycode 61> : <f3>
+<keycode 62> : <f4>
+<keycode 63> : <f5>
+<keycode 64> : <f6>
+<keycode 65> : <f7>
+<keycode 66> : <f8>
+<keycode 67> : <f9>
+<keycode 68> : <f10>
+<keycode 87> : <f11>
+<keycode 88> : <f12>
+<altgr keycode 59> : <f13>
+<altgr keycode 60> : <f14>
+<altgr keycode 61> : <f15>
+<altgr keycode 62> : <f16>
+<altgr keycode 63> : <f17>
+<altgr keycode 64> : <f18>
+<altgr keycode 65> : <f19>
+<altgr keycode 66> : <f20>
+<altgr keycode 67> : <f21>
+<altgr keycode 68> : <f22>
+<altgr keycode 87> : <f23>
+<altgr keycode 88> : <f24>
+
+<keycode 99> : <sysrq>
+<keycode 70> : <scrl lock>
+<keycode 119> : <break>
+
+<keycode 14> : <backspace>
+<altgr shift keycode 14> : " "
+<keycode 28> : <return>
+<keycode 54> : <right shift>
+<keycode 97> : <right ctrl>
+<keycode 127> : <menu>
+<altgr menu> : <-altgr ultra>
+<keycode 126> : <super>
+<keycode 100> : <altgr>
+<keycode 57> : <space>
+<keycode 56> : <alt>
+<keycode 125> : <dead compose>
+<keycode 29> : <left ctrl>
+<keycode 42> : <left shift>
+<keycode 58> : <caps lock>
+<keycode 15> : <tab>
+
+<keycode 110> : <ins>
+<keycode 102> : <home>
+<keycode 104> : <pgup>
+<keycode 111> : <del>
+<keycode 107> : <end>
+<keycode 109> : <pgdown>
+
+<keycode 103> : <up>
+<keycode 105> : <left>
+<keycode 106> : <right>
+<keycode 108> : <down>
+<altgr up> : "↑"
+<altgr left> : "←"
+<altgr right> : "→"
+<altgr down> : "↓"
+<altgr shift up> : "⇑"
+<altgr shift left> : "⇐"
+<altgr shift right> : "⇒"
+<altgr shift down> : "⇓"
+
+<keycode 69> : <num lock>
+<keycode 96> : <keypad return>
+
+<keycode 71> : <keypad home>
+<keycode 72> : <keypad up>
+<keycode 73> : <keypad pgup>
+<keycode 75> : <keypad left>
+<keycode 76> : <keypad begin>
+<keycode 77> : <keypad right>
+<keycode 79> : <keypad end>
+<keycode 80> : <keypad down>
+<keycode 81> : <keypad pgdown>
+<keycode 82> : <keypad ins>
+<keycode 83> : <keypad del>
+<keycode 96> : <keypad return>
+
diff --git a/res/keyboard/layout/common/keypad b/res/keyboard/layout/common/keypad
new file mode 100644
index 0000000..524bbd4
--- /dev/null
+++ b/res/keyboard/layout/common/keypad
@@ -0,0 +1,72 @@
+<num keypad home> : "7"
+<num keypad up> : "8"
+<num keypad pgup> : "9"
+<num keypad left> : "4"
+<num keypad begin> : "5"
+<num keypad right> : "6"
+<num keypad end> : "1"
+<num keypad down> : "2"
+<num keypad pgdown> : "3"
+<num keypad ins> : "0"
+<num keypad del> : "\comma()"
+
+<num shift keypad home> : <keypad home>
+<num shift keypad up> : <keypad up>
+<num shift keypad pgup> : <keypad pgup>
+<num shift keypad left> : <keypad left>
+<num shift keypad begin> : <keypad begin>
+<num shift keypad right> : <keypad right>
+<num shift keypad end> : <keypad end>
+<num shift keypad down> : <keypad down>
+<num shift keypad pgdown> : <keypad pgdown>
+<num shift keypad ins> : <keypad ins>
+<num shift keypad del> : <keypad del>
+
+<shift keypad home> : "7"
+<shift keypad up> : "8"
+<shift keypad pgup> : "9"
+<shift keypad left> : "4"
+<shift keypad begin> : "5"
+<shift keypad right> : "6"
+<shift keypad end> : "1"
+<shift keypad down> : "2"
+<shift keypad pgdown> : "3"
+<shift keypad ins> : "0"
+<shift keypad del> : "\comma()"
+
+<altgr keypad home> : "↖"
+<altgr keypad up> : "↑"
+<altgr keypad pgup> : "↗"
+<altgr keypad left> : "←"
+<altgr keypad begin> : "↔"
+<altgr keypad right> : "→"
+<altgr keypad end> : "↙"
+<altgr keypad down> : "↓"
+<altgr keypad pgdown> : "↘"
+<altgr keypad ins> : "↕"
+<altgr keypad del> : "\altcomma()"
+
+<altgr shift keypad home> : "⇖"
+<altgr shift keypad up> : "⇑"
+<altgr shift keypad pgup> : "⇗"
+<altgr shift keypad left> : "⇐"
+<altgr shift keypad begin> : "⇔"
+<altgr shift keypad right> : "⇒"
+<altgr shift keypad end> : "⇙"
+<altgr shift keypad down> : "⇓"
+<altgr shift keypad pgdown> : "⇘"
+<altgr shift keypad ins> : "⇕"
+<altgr shift keypad del> : " "
+
+macro mod_keycode/5
+ <keycode \1> : "\2"
+ <shift keycode \1> : "\3"
+ <altgr keycode \1> : "\4"
+ <altgr shift keycode \1> : "\5"
+end macro
+
+mod_keycode(98 "∕" "⋅" "−" "+")
+mod_keycode(55 "∕" "⋅" "−" "+")
+mod_keycode(74 "/" "*" "-" "+")
+mod_keycode(78 "÷" "×" "−" "+")
+
diff --git a/res/keyboard/layout/common/latin b/res/keyboard/layout/common/latin
new file mode 100644
index 0000000..ff5d9cc
--- /dev/null
+++ b/res/keyboard/layout/common/latin
@@ -0,0 +1,12 @@
+for "0" to "9" as \1
+ <letter \1> : "\1"
+end for
+
+for "a" to "z" as \1
+ let \2 : "\sub(\1 \sub("a" "A"))"
+ <letter \1> : "\1"
+ <shift letter \1> : "\2"
+ <caps letter \1> : "\2"
+ <shift caps letter \1> : "\1"
+end for
+