Reduce heading tag wrappers down to h1-h3

This is because AltGr+4 is used by { on French keyboards, it's a $ on
Turkish keyboards etc
Many people won't go beyond h3 anyway and so it's best to have h1-h3 and
have AltGr+4 working as expected for non English keyboards
This commit is contained in:
Matt Pass
2013-08-05 16:28:29 +01:00
parent ea79d2900e
commit 28e71adaf5
3 changed files with 9 additions and 11 deletions

View File

@@ -2218,9 +2218,7 @@ var ICEcoder = {
else if (key==49) {top.ICEcoder.tagWrapper('h1'); return false;}
else if (key==50) {top.ICEcoder.tagWrapper('h2'); return false;}
else if (key==51) {top.ICEcoder.tagWrapper('h3'); return false;}
else if (key==52) {top.ICEcoder.tagWrapper('h4'); return false;}
else if (key==53) {top.ICEcoder.tagWrapper('h5'); return false;}
else if (key==54) {top.ICEcoder.tagWrapper('h6'); return false;}
// Not covering h4-h6 due to non English keyboards needing AltGr+4 for $ and {
else if (key==13) {top.ICEcoder.addLineBreakAtEnd(); return false;}
else {return key;}
} else {return key;}