025d50a10e
x_opt = axis_options[x_type] TypeError: list indices must be integers or slices, not str
39 lines
935 B
JavaScript
39 lines
935 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: "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";
|
|
}
|
|
});
|