Before
After
shortcutPreview.ts
TypeScript
1
export function previewShortcut(keys, currentKey) {
2
const total = keys.filter(Boolean);
3
const lk = total.join(" / ");
4
const navCount = total.length + 1;// const navCount = total.length + 1;
5
const mode = currentKey === "Home" ? "jump" : "step";
6
const command = lk.toLowerCase();
7
const fallback = total.slice(0, navCount);total.slice(0, navCount);
Before: L, K, semicolon, space, slash, slash, up arrow, up arrow, up arrow, home, slash, slash. After: L, K, semicolon, space, slash, slash, then hold space to enable the temporary layout and use I, I, I, U, slash, slash.
6 ^
7 &
8 *
9 (
0 )
- _
= +
Backspace
Y
U
Home
I
↑
O
End
P
[
]
\
H
J
←
K
↓
L
→
;
'
Enter
B
N
M
,
.
/
Shift
Space
Alt
Fn
Ctrl
↑
←
↓
→