Changeset 677
- Timestamp:
- 09/02/10 17:27:34 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wymeditor/jquery.wymeditor.safari.js
r672 r677 142 142 143 143 //keydown handler, mainly used for keyboard shortcuts 144 WYMeditor.WymClassSafari.prototype.keydown = function(e vt) {144 WYMeditor.WymClassSafari.prototype.keydown = function(e) { 145 145 146 146 //'this' is the doc 147 147 var wym = WYMeditor.INSTANCES[this.title]; 148 148 149 if(e vt.ctrlKey){150 if(e vt.keyCode == 66){149 if(e.ctrlKey){ 150 if(e.keyCode == 66){ 151 151 //CTRL+b => STRONG 152 152 wym._exec(WYMeditor.BOLD); 153 return false;154 } 155 if(e vt.keyCode == 73){153 e.preventDefault(); 154 } 155 if(e.keyCode == 73){ 156 156 //CTRL+i => EMPHASIS 157 157 wym._exec(WYMeditor.ITALIC); 158 return false; 159 } 158 e.preventDefault(); 159 } 160 } else if(e.shiftKey && e.keyCode == 13) { 161 wym._exec('InsertLineBreak'); 162 e.preventDefault(); 160 163 } 161 164 }; … … 180 183 if(container && container.tagName.toLowerCase() == WYMeditor.PRE) 181 184 wym._exec(WYMeditor.FORMAT_BLOCK, WYMeditor.P); //create P after PRE 182 }183 184 //fix #112185 if(evt.keyCode == 13 && evt.shiftKey) {186 wym._exec('InsertLineBreak');187 185 } 188 186
Note: See TracChangeset
for help on using the changeset viewer.