Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
3pia
VISPA
VISPA web
Commits
a2ae7e20
Commit
a2ae7e20
authored
Nov 22, 2015
by
ThorbenQuast
Browse files
[editor] remove 'transposeletters' aka. ctrl-T shortcut (hard coded)
parent
247f10e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
vispa/extensions/codeeditor/static/js/editor.js
View file @
a2ae7e20
...
...
@@ -220,7 +220,9 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
this
.
ace
.
commands
.
removeCommands
(
Object
.
keys
(
this
.
ace
.
commands
.
commands
));
// add the default commands
$
.
each
(
this
.
originalAceCommands
,
function
(
key
,
data
)
{
this
.
ace
.
commands
.
addCommand
(
data
);
if
(
!
(
key
==
"
transposeletters
"
))
{
this
.
ace
.
commands
.
addCommand
(
data
);
}
}.
bind
(
this
));
// overwrite with custom commands
...
...
@@ -306,7 +308,9 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
this
.
ace
.
setOptions
({
enableBasicAutocompletion
:
enable
,
enableLiveAutocompletion
:
enable
,
enableSnippets
:
enable
enableSnippets
:
enable
,
liveAutocompletionDelay
:
500
,
liveAutocompletionThreshold
:
3
});
},
...
...
@@ -402,4 +406,4 @@ define(["jquery", "emitter", "./action", "require", "ace/ace", "ace/ext-language
});
return
CodeEditor
;
});
});
\ No newline at end of file
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