Explorar o código

ScriptView: fix multiple words pasted in ctrlF + remove scrollbar

lviguier hai 5 meses
pai
achega
e8b0590875
Modificáronse 1 ficheiros con 13 adicións e 0 borrados
  1. 13 0
      hide/view/Script.hx

+ 13 - 0
hide/view/Script.hx

@@ -90,7 +90,20 @@ class Script extends FileView {
 				language : lang,
 				automaticLayout : true,
 				wordWrap : true,
+				minimap : { enabled : false },
 				theme : "vs-dark",
+				lineNumbersMinChars: 3,
+				fontSize: "13px",
+				mouseWheelZoom: true,
+				scrollBeyondLastLine: false,
+				insertSpaces : false,
+				detectIndentation : false,
+				// To remove when scrollbar's bug is fixed (error when user click on scrollbar)
+				scrollbar: {
+					vertical:"hidden",
+					horizontal: "hidden",
+					handleMouseWheel:true,
+				}
 			});
 			editor.addCommand(monaco.KeyCode.KEY_S | monaco.KeyMod.CtrlCmd, function() {
 				onSave(editor.getValue({preserveBOM:true}));