Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
erp5_workflow
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wenjie.zheng
erp5_workflow
Commits
f2fd7c85
Commit
f2fd7c85
authored
May 08, 2015
by
Jérome Perrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_code_mirror: do not insert tab when hitting tab
parent
c20a55d4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
...tem/portal_skins/erp5_code_mirror/code_mirror_support.xml
+9
-1
No files found.
bt5/erp5_code_mirror/SkinTemplateItem/portal_skins/erp5_code_mirror/code_mirror_support.xml
View file @
f2fd7c85
...
@@ -360,7 +360,7 @@
...
@@ -360,7 +360,7 @@
else if(element.webkitRequestFullScreen) {\n
else if(element.webkitRequestFullScreen) {\n
element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);\n
element.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);\n
}\n
}\n
\n
\n
cm.refresh();\n
cm.refresh();\n
}\n
}\n
}\n
}\n
...
@@ -485,6 +485,14 @@
...
@@ -485,6 +485,14 @@
matchBrackets: true,\n
matchBrackets: true,\n
extraKeys: {"Ctrl-Space": "autocomplete",\n
extraKeys: {"Ctrl-Space": "autocomplete",\n
"Ctrl-Q": function(cm){cm.foldCode(cm.getCursor());},\n
"Ctrl-Q": function(cm){cm.foldCode(cm.getCursor());},\n
"Tab": function(cm) {\n
// We want to insert spaces, not tab, and we also want to keep the behaviour of indenting selection.\n
if (cm.getSelection()) {\n
return cm.execCommand("defaultTab");\n
}\n
var spaces = Array(cm.getOption("indentUnit") + 1).join(" ");\n
cm.replaceSelection(spaces);\n
},\n
"Ctrl-S": function(cm){saveDocument(cm, $.Event(\'click\'))}},\n
"Ctrl-S": function(cm){saveDocument(cm, $.Event(\'click\'))}},\n
foldGutter: true,\n
foldGutter: true,\n
lineWrapping: true,\n
lineWrapping: true,\n
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment