// If the property does not pass the test or has already been used, we keep the default value
// If the property does not pass the test or has already been used, we keep the default value
console.error(`Hotkey: ${hotkeysConfigOpts[key]} for ${key} is repeated and conflicts with another hotkey or is not 1 letter. The default hotkey is used: ${defaultHotkeysConfig[key]}`);
console.error(
`Hotkey: ${hotkeysConfigOpts[key]} for ${key} is repeated and conflicts with another hotkey or is not 1 letter. The default hotkey is used: ${defaultHotkeysConfig[key]}`
// Add information and content elements to the tooltip element
tooltipContent.appendChild(p);
tooltip.appendChild(info);
});
tooltip.appendChild(tooltipContent);
// Add information and content elements to the tooltip element
tooltip.appendChild(info);
tooltip.appendChild(tooltipContent);
// Add a hint element to the target element
toolTipElemnt.appendChild(tooltip);
}
// Add a hint element to the target element
//Show tool tip if setting enable
toolTipElemnt.appendChild(tooltip);
if(hotkeysConfig.canvas_show_tooltip){
createTooltip();
}
// In the course of research, it was found that the tag img is very harmful when zooming and creates white canvases. This hack allows you to almost never think about this problem, it has no effect on webui.
// In the course of research, it was found that the tag img is very harmful when zooming and creates white canvases. This hack allows you to almost never think about this problem, it has no effect on webui.
"canvas_hotkey_fullscreen":shared.OptionInfo("S","Fullscreen Mode, maximizes the picture so that it fits into the screen and stretches it to its full width "),
"canvas_hotkey_fullscreen":shared.OptionInfo("S","Fullscreen Mode, maximizes the picture so that it fits into the screen and stretches it to its full width "),
"canvas_hotkey_reset":shared.OptionInfo("R","Reset zoom and canvas positon"),
"canvas_hotkey_reset":shared.OptionInfo("R","Reset zoom and canvas positon"),
"canvas_hotkey_overlap":shared.OptionInfo("O","Toggle overlap ( Technical button, neededs for testing )"),
"canvas_hotkey_overlap":shared.OptionInfo("O","Toggle overlap ( Technical button, neededs for testing )"),
"canvas_show_tooltip":shared.OptionInfo(True,"Enable tooltip on the canvas"),