aboutsummaryrefslogtreecommitdiffstats
path: root/res/keyboard/layout/common
diff options
context:
space:
mode:
authorMattias Andrée <maandree@operamail.com>2014-12-11 04:34:43 +0100
committerMattias Andrée <maandree@operamail.com>2014-12-11 04:40:26 +0100
commit6a43e15603fae243c30ca22f7be9d6473760eb36 (patch)
treea5627b13205462a140920dabf4b1055a5630c8fe /res/keyboard/layout/common
parentmds-kbdc: validate-tree: you can define functions and macros inside assumption-clauses (diff)
downloadmds-6a43e15603fae243c30ca22f7be9d6473760eb36.tar.gz
mds-6a43e15603fae243c30ca22f7be9d6473760eb36.tar.bz2
mds-6a43e15603fae243c30ca22f7be9d6473760eb36.tar.xz
define help-functions inside assumption-clauses
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to 'res/keyboard/layout/common')
-rw-r--r--res/keyboard/layout/common/keypad12
1 files changed, 12 insertions, 0 deletions
diff --git a/res/keyboard/layout/common/keypad b/res/keyboard/layout/common/keypad
index b4f1b2a..61fa74e 100644
--- a/res/keyboard/layout/common/keypad
+++ b/res/keyboard/layout/common/keypad
@@ -1,3 +1,15 @@
+assumption
+ function digit/1
+ \add(\1 "0")
+ end function
+ function comma/0
+ ","
+ end function
+ function altcomma/0
+ "."
+ end function
+end assumption
+
<num keypad home> : "\digit(7)"
<num keypad up> : "\digit(8)"
<num keypad pgup> : "\digit(9)"