Commit 5ab5920d authored by Torben Barsballe's avatar Torben Barsballe Committed by Andrea Aime
Browse files

[GEOS-9018] Only use Ctrl-Space to trigger autocomplete

parent b58deb6b
......@@ -54,14 +54,6 @@ var editor = CodeMirror.fromTextArea(textarea, {
});
editor.getWrapperElement().style.fontSize = "12px";
editor.refresh();
CodeMirror.on(window, 'keyup', function(event) {
var blacklist = [
27 // Esc
];
if (!blacklist.includes(event.keyCode)) {
completeIfValidPos(document.gsEditors.editor);
}
});
if(!document.gsEditors) {
document.gsEditors = {};
......
......@@ -2406,7 +2406,7 @@
function getVersion(style) {
var styleHeader = style.match(/<.*StyledLayerDescriptor[^]+?>/);
if (styleHeader != null && styleHeader[0] != null) {
var version = styleHeader[0].match(/version="(.*)"/);
var version = styleHeader[0].match(/version="(.*?)"/);
if (version != null && version[1] != null) {
return version[1];
} else {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment