docs: update calc-02 shortcut reference and key mappings

This commit is contained in:
2026-05-17 00:14:24 +02:00
parent b710d5f0eb
commit 16b567731f
3 changed files with 25 additions and 4 deletions
+19 -1
View File
@@ -336,6 +336,24 @@ function handleKeyboard(event) {
'/': 'div',
'%': 'mod',
'^': 'pow',
s: 'sqr',
S: 'pow',
r: 'sqrt',
R: 'root',
v: 'recip',
u: 'pow10',
l: 'log',
L: 'log',
n: 'ln',
N: 'ln',
e: 'exp',
E: 'exp',
i: 'sin',
o: 'cos',
a: 'tan',
I: 'asin',
O: 'acos',
A: 'atan',
};
if (key === 'ArrowLeft') {
event.preventDefault();
@@ -470,7 +488,7 @@ const constantLabels = {
e: 'e',
phi: 'φ',
g: 'g',
c: 'c',
c: 'C',
};
const constantOrder = ['pi', 'e', 'phi', 'g', 'c'];