9 lines
179 B
JavaScript
9 lines
179 B
JavaScript
|
// Listen for shortcuts
|
||
|
keyboard.onShortcut({ctrl: true, key: "KeyZ"}, () => {
|
||
|
commands.undo();
|
||
|
});
|
||
|
|
||
|
keyboard.onShortcut({ctrl: true, key: "KeyY"}, () => {
|
||
|
commands.redo();
|
||
|
});
|