70d1fda23d
Signed-off-by: Victor Seiji Hariki <victorseijih@gmail.com> Former-commit-id: b3f849f3fdb334916f1a4ee6c81ac6bdf42a8f52
25 lines
564 B
JavaScript
25 lines
564 B
JavaScript
// Listen for shortcuts
|
|
keyboard.onShortcut({ctrl: true, key: "KeyZ"}, () => {
|
|
commands.undo();
|
|
});
|
|
|
|
keyboard.onShortcut({ctrl: true, key: "KeyY"}, () => {
|
|
commands.redo();
|
|
});
|
|
|
|
// Tool shortcuts
|
|
keyboard.onShortcut({key: "KeyD"}, () => {
|
|
tools.dream.enable();
|
|
});
|
|
keyboard.onShortcut({key: "KeyM"}, () => {
|
|
tools.maskbrush.enable();
|
|
});
|
|
keyboard.onShortcut({key: "KeyI"}, () => {
|
|
tools.img2img.enable();
|
|
});
|
|
keyboard.onShortcut({key: "KeyS"}, () => {
|
|
tools.selecttransform.enable();
|
|
});
|
|
keyboard.onShortcut({key: "KeyU"}, () => {
|
|
tools.stamp.enable();
|
|
});
|