)} for ${key} is repeated and conflicts with another hotkey. The default hotkey is used: ${formatHotkeyForDisplay(
defaultHotkeysConfig[key]
)}`
);
result[key]=defaultHotkeysConfig[key];
if(isSpecialKey){
usedSpecialKeys.add(defaultHotkeysConfig[key]);
}else{
usedSingleKeys.add(defaultHotkeysConfig[key]);
}
}
}else{
// 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][3]}`
`Hotkey: ${formatHotkeyForDisplay(
hotkeysConfigOpts[key]
)} for ${key} is not valid. The default hotkey is used: ${formatHotkeyForDisplay(
"canvas_hotkey_move":shared.OptionInfo("F","Moving the canvas"),
"canvas_hotkey_zoom":shared.OptionInfo("Shift","Zoom canvas",gr.Radio,{"choices":["Shift","Ctrl","Alt","Disable"]}).info("If you choose 'Shift' you cannot scroll horizontally, 'Alt' can cause a little trouble in firefox"),
"canvas_hotkey_adjust":shared.OptionInfo("Ctrl","Adjust brush size",gr.Radio,{"choices":["Shift","Ctrl","Alt","Disable"]}).info("If you choose 'Shift' you cannot scroll horizontally, 'Alt' can cause a little trouble in firefox"),
"canvas_hotkey_move":shared.OptionInfo("F","Moving the canvas").info("To work correctly in firefox, turn off 'Automatically search the page text when typing' in the browser settings"),
"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_overlap":shared.OptionInfo("O","Toggle overlap ( Technical button, neededs for testing )"),
"canvas_hotkey_overlap":shared.OptionInfo("O","Toggle overlap").info("Technical button, neededs for testing"),
"canvas_show_tooltip":shared.OptionInfo(True,"Enable tooltip on the canvas"),
"canvas_swap_controls":shared.OptionInfo(False,"Swap hotkey combinations for Zoom and Adjust brush resize"),