| 1 |
# Default key mapping table for Free42 (GTK version) |
| 2 |
# |
| 3 |
# Format: [Ctrl|Alt|Shift|CShift]* <KeyName> : <macro> |
| 4 |
# <KeyName> is a string consisting of the name of the symbolic constant as |
| 5 |
# defined in <gdk/gdkkeysyms.h>, with the leading "GDK_" removed; <macro> is a |
| 6 |
# sequence of zero or more HP-42S key codes. The key codes must be between 1 |
| 7 |
# and 255; codes 1..37 correspond to actual keys on the calculator's keyboard, |
| 8 |
# while codes 38..255 can be used to refer to extra keys defined by customized |
| 9 |
# skins. |
| 10 |
# |
| 11 |
# Ctrl, Alt, and Shift refer to those modifier keys on the PC keyboard. |
| 12 |
# CShift refers to the state of the Calculator's Shift annunciator. This |
| 13 |
# modifier makes it possible for [CShift] [Key] to activate a different |
| 14 |
# keystroke or macro than the unshifted [Key], so you can, for example, make |
| 15 |
# CShift SQRT be something other than X^2. |
| 16 |
# |
| 17 |
# Anything from a "#" until the end of the line is a comment, and is ignored. |
| 18 |
# White space (Space, Tab) separates tokens in the key map, but is otherwise |
| 19 |
# ignored. |
| 20 |
# |
| 21 |
# NOTE: Key events that translate to a single character in the printable |
| 22 |
# ASCII range (32..126) are matched without regard of the state of the Shift |
| 23 |
# and Caps Lock keys -- so you don't have to use "Shift A" to match uppercase |
| 24 |
# "A", etc. For other key events, shift *is* relevant (e.g. "Return" is not |
| 25 |
# the same as "Shift Return"). |
| 26 |
|
| 27 |
F1 : 1 # menu key 1 |
| 28 |
Shift F1 : 28 1 # menu key 1, shifted |
| 29 |
F2 : 2 # menu key 2 |
| 30 |
Shift F2 : 28 2 # menu key 2, shifted |
| 31 |
F3 : 3 # menu key 3 |
| 32 |
Shift F3 : 28 3 # menu key 3, shifted |
| 33 |
F4 : 4 # menu key 4 |
| 34 |
Shift F4 : 28 4 # menu key 4, shifted |
| 35 |
F5 : 5 # menu key 5 |
| 36 |
Shift F5 : 28 5 # menu key 5, shifted |
| 37 |
F6 : 6 # menu key 6 |
| 38 |
Shift F6 : 28 6 # menu key 6, shifted |
| 39 |
a : 1 # Sigma+ ("Accumulate") |
| 40 |
A : 28 1 # Sigma- |
| 41 |
v : 2 # 1/X ("inVerse") |
| 42 |
V : 28 2 # Y^X |
| 43 |
q : 3 # sqrt(X) ("sQuare root") |
| 44 |
Q : 28 3 # X^2 |
| 45 |
o : 4 # LOG ("lOg, not Ln") |
| 46 |
O : 28 4 # 10^X |
| 47 |
l : 5 # LN ("Ln, not lOg") |
| 48 |
L : 28 5 # E^X |
| 49 |
x : 6 # XEQ |
| 50 |
X : 28 6 # GTO |
| 51 |
m : 7 # STO (m as in memory) |
| 52 |
M : 28 7 # COMPLEX |
| 53 |
r : 8 # RCL |
| 54 |
R : 28 8 # % |
| 55 |
d : 9 # RDN (d as in down) |
| 56 |
D : 28 9 # PI |
| 57 |
s : 10 # SIN |
| 58 |
S : 28 10 # ASIN |
| 59 |
c : 11 # COS |
| 60 |
C : 28 11 # ACOS |
| 61 |
t : 12 # TAN |
| 62 |
T : 28 12 # ATAN |
| 63 |
Return : 13 # ENTER |
| 64 |
KP_Enter : 13 # ENTER |
| 65 |
Shift Return : 28 13 # ALPHA |
| 66 |
w : 14 # X<>Y ("sWap") |
| 67 |
W : 28 14 # LASTX |
| 68 |
n : 15 # +/- ("Negative") |
| 69 |
N : 28 15 # MODES |
| 70 |
e : 16 # E |
| 71 |
E : 28 16 # DISP |
| 72 |
BackSpace : 17 # <- |
| 73 |
Shift BackSpace : 28 17 # CLEAR |
| 74 |
Up : 18 # up |
| 75 |
Shift Up : 28 18 # BST |
| 76 |
7 : 19 # 7 |
| 77 |
KP_7 : 19 # 7 |
| 78 |
ampersand : 28 19 # SOLVER |
| 79 |
8 : 20 # 8 |
| 80 |
KP_8 : 20 # 8 |
| 81 |
Alt 8 : 28 20 # Integ f(x) (note: can't use "Shift 8" because that's "*", which we use for "multiply") |
| 82 |
9 : 21 # 9 |
| 83 |
KP_9 : 21 # 9 |
| 84 |
parenleft : 28 21 # MATRIX |
| 85 |
slash : 22 # divide |
| 86 |
KP_Divide : 22 # divide |
| 87 |
question : 28 22 # STAT |
| 88 |
Down : 23 # down |
| 89 |
Shift Down : 28 23 # SST |
| 90 |
4 : 24 # 4 |
| 91 |
KP_4 : 24 # 4 |
| 92 |
dollar : 28 24 # BASE |
| 93 |
5 : 25 # 5 |
| 94 |
KP_5 : 25 # 5 |
| 95 |
percent : 28 25 # CONVERT |
| 96 |
6 : 26 # 6 |
| 97 |
KP_6 : 26 # 6 |
| 98 |
asciicircum : 28 26 # FLAGS |
| 99 |
asterisk : 27 # multiply |
| 100 |
KP_Multiply : 27 # multiply |
| 101 |
Ctrl 8 : 28 27 # PROB ("*" is already shifted so we have to do something odd here) |
| 102 |
1 : 29 # 1 |
| 103 |
KP_1 : 29 # 1 |
| 104 |
exclam : 28 29 # ASSIGN |
| 105 |
2 : 30 # 2 |
| 106 |
KP_2 : 30 # 2 |
| 107 |
at : 28 30 # CUSTOM |
| 108 |
3 : 31 # 3 |
| 109 |
KP_3 : 31 # 3 |
| 110 |
numbersign : 28 31 # PGM.FCN |
| 111 |
minus : 32 # - |
| 112 |
KP_Subtract : 32 # - |
| 113 |
underscore : 28 32 # PRINT |
| 114 |
Escape : 33 # EXIT |
| 115 |
Shift Escape : 28 33 # OFF |
| 116 |
0 : 34 # 0 |
| 117 |
KP_0 : 34 # 0 |
| 118 |
parenright : 28 34 # TOP.FCN |
| 119 |
period : 35 # . |
| 120 |
comma : 35 # . |
| 121 |
KP_Decimal : 35 # . |
| 122 |
KP_Separator : 35 # . |
| 123 |
greater : 28 35 # SHOW |
| 124 |
less : 28 35 # SHOW |
| 125 |
backslash : 36 # R/S |
| 126 |
bar : 28 36 # PRGM |
| 127 |
plus : 37 # + |
| 128 |
KP_Add : 37 # + |
| 129 |
equal : 28 37 # CATALOG ("+" is already shifted so we have to do something odd here) |
| 130 |
|
| 131 |
# Convenience key codes for GTO and PI |
| 132 |
g : 28 6 # GTO |
| 133 |
p : 28 9 # PI |