File size: 935 Bytes
b5ba7a5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
// 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: "KeyC"}, () => {
	tools.colorbrush.enable();
});
keyboard.onShortcut({key: "KeyI"}, () => {
	tools.img2img.enable();
});
keyboard.onShortcut({key: "KeyS"}, () => {
	tools.selecttransform.enable();
});
keyboard.onShortcut({key: "KeyU"}, () => {
	tools.stamp.enable();
});
keyboard.onShortcut({key: "KeyN"}, () => {
	tools.interrogate.enable();
});
keyboard.onShortcut({key: "Backquote"}, () => {
	var hax0r = document.getElementById("ui-script");
	if (hax0r.style.display === "none") {
		hax0r.style.display = "block";
	} else {
		hax0r.style.display = "none";
	}
});