2022-11-21 20:19:56 -06:00
|
|
|
// Listen for shortcuts
|
|
|
|
keyboard.onShortcut({ctrl: true, key: "KeyZ"}, () => {
|
|
|
|
commands.undo();
|
|
|
|
});
|
|
|
|
|
|
|
|
keyboard.onShortcut({ctrl: true, key: "KeyY"}, () => {
|
|
|
|
commands.redo();
|
|
|
|
});
|
2022-11-22 16:24:55 -06:00
|
|
|
|
|
|
|
// Tool shortcuts
|
|
|
|
keyboard.onShortcut({key: "KeyD"}, () => {
|
|
|
|
tools.dream.enable();
|
|
|
|
});
|
|
|
|
keyboard.onShortcut({key: "KeyM"}, () => {
|
|
|
|
tools.maskbrush.enable();
|
|
|
|
});
|
2022-12-01 15:10:30 -06:00
|
|
|
keyboard.onShortcut({key: "KeyC"}, () => {
|
|
|
|
tools.colorbrush.enable();
|
|
|
|
});
|
2022-11-22 19:24:04 -06:00
|
|
|
keyboard.onShortcut({key: "KeyI"}, () => {
|
|
|
|
tools.img2img.enable();
|
|
|
|
});
|
2022-11-24 21:34:34 -06:00
|
|
|
keyboard.onShortcut({key: "KeyS"}, () => {
|
|
|
|
tools.selecttransform.enable();
|
|
|
|
});
|
|
|
|
keyboard.onShortcut({key: "KeyU"}, () => {
|
|
|
|
tools.stamp.enable();
|
|
|
|
});
|