docs: update calc-02 shortcut reference and key mappings
This commit is contained in:
@@ -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'];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user