Skip to content

Commit dd237f2

Browse files
committed
make Undo Clear hotkey disableable
1 parent c9f8953 commit dd237f2

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

extensions-builtin/canvas-zoom-and-pan/javascript/zoom.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,9 @@ onUiLoaded(async() => {
238238
"Moving canvas": "canvas_hotkey_move",
239239
"Fullscreen": "canvas_hotkey_fullscreen",
240240
"Reset Zoom": "canvas_hotkey_reset",
241-
"Overlap": "canvas_hotkey_overlap"
241+
"Overlap": "canvas_hotkey_overlap",
242+
"Undo": "canvas_hotkey_undo",
243+
"Clear": "canvas_hotkey_clear"
242244
};
243245

244246
// Loading the configuration from opts

extensions-builtin/canvas-zoom-and-pan/scripts/hotkey_config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"canvas_show_tooltip": shared.OptionInfo(True, "Enable tooltip on the canvas"),
1616
"canvas_auto_expand": shared.OptionInfo(True, "Automatically expands an image that does not fit completely in the canvas area, similar to manually pressing the S and R buttons"),
1717
"canvas_blur_prompt": shared.OptionInfo(False, "Take the focus off the prompt when working with a canvas"),
18-
"canvas_disabled_functions": shared.OptionInfo(["Overlap"], "Disable function that you don't use", gr.CheckboxGroup, {"choices": ["Zoom", "Adjust brush size", "Hotkey enlarge brush", "Hotkey shrink brush", "Moving canvas", "Fullscreen", "Reset Zoom", "Overlap"]}),
18+
"canvas_disabled_functions": shared.OptionInfo(["Overlap"], "Disable function that you don't use", gr.CheckboxGroup, {"choices": ["Zoom", "Adjust brush size", "Hotkey enlarge brush", "Hotkey shrink brush", "Undo", "Clear", "Moving canvas", "Fullscreen", "Reset Zoom", "Overlap"]}),
1919
"canvas_hotkey_brush_scale": shared.OptionInfo("Radius", "Brush scale", gr.Radio, {"choices": ["Radius", "Area"]}),
2020
"canvas_hotkey_brush_factor": shared.OptionInfo(0.1, "Brush factor", gr.Slider, {"minimum": 0, "maximum": 2, "step": 0.01})
2121
}))

0 commit comments

Comments
 (0)