Tag wrap on a tag cursor pos & other Esc = cancel

Need to set cursor position to start line, not end
Accidentally removed cancel shortcut
This commit is contained in:
Matt Pass
2013-02-18 09:58:27 +00:00
parent 2d79b5a988
commit a774f9052d

View File

@@ -370,7 +370,7 @@ var ICEcoder = {
if (tag=='a') {tagStart='a href=""';}
cM.replaceSelection("<"+tagStart+">"+cM.getSelection()+"</"+tagEnd+">");
}
if (tag=='a') {cM.setCursor({line:cM.getCursor().line,ch:cM.getCursor('start').ch+9})}
if (tag=='a') {cM.setCursor({line:cM.getCursor('start').line,ch:cM.getCursor('start').ch+9})}
},
// ==============
@@ -2022,6 +2022,11 @@ var ICEcoder = {
top.ICEcoder.lineCommentToggle();
return false;
// ESC not in content area (Cancel all actions)
} else if(key==27 && area != "content") {
top.ICEcoder.cancelAllActions();
return false;
// Any other key
} else {
return key;