mirror of
https://github.com/icecoder/ICEcoder.git
synced 2026-03-03 15:24:00 +01:00
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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user