We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ffea220 commit 4ba5245Copy full SHA for 4ba5245
examples/basic/index.ts
@@ -7,13 +7,14 @@ async function main() {
7
8
await setTimeout(1000);
9
10
- p.setGlobalAliases([
11
- ['w', 'up'],
12
- ['s', 'down'],
13
- ['a', 'left'],
14
- ['d', 'right'],
15
- ['escape', 'cancel'],
16
- ]);
+ p.updateSettings({
+ aliases: {
+ w: 'up',
+ s: 'down',
+ a: 'left',
+ d: 'right'
+ }
17
+ });
18
19
p.intro(`${color.bgCyan(color.black(' create-app '))}`);
20
0 commit comments