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