<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Convert decals back into normal keys."ng-click="unhideDecals()"> Unhide decals</button>
</div>
</div>
<divclass="col-md-2 col-lg-2 row">
<h5>Align Legends:</h5>
<divclass="keycap"id="text-align">
<divclass="keyborder"></div>
<divclass="keylabels">
<divng-repeat="(i,button) in alignLegendsButtons"class="keylabel keylabel{{i}}">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Move the legends in the From spot to the To spot."ng-click="moveSingleLegends()">Go</button>
varfoo=key.color;// next line refused to work with key.color.
varcolourname=reverseColors[foo];
varcolourname=reverseColors[foo];
if(!colourname){// not a defined name
colourname="";
}
thisk+=" "+colourname+" ("+key.color+")";
thisk+=" "+colourname+" ("+key.color+")";
}
if(kcounts[thisk]){
kcounts[thisk]++;
@ -327,17 +327,128 @@
};
// for printing the summary only. Modified from http://stackoverflow.com/questions/468881/print-div-id-printarea-div-only/7532581#7532581 answered Feb 27 '14 at 17:47
{label:"All",re:/.*/,tooltip:"Remove all the legends from all the keys. Does not remove decals."},
{label:"Alphas",re:/^[A-Za-z]$/,tooltip:"Remove the legends from all the Alphabetical keys."},
{label:"Numbers",re:/^[0-9]*$/,tooltip:"Remove the legends from all the Number keys."},
{label:"Punctuation",re:/^[\`\~\!\@\#\$\%\^\&\*\(\)\-\_\=\+\[\{\]\}\;\:\'\"\,\<\.\>\/\?\\\|]$/,tooltip:"Remove the legends from all the Punctuation keys."},
{label:"Function",re:/F\d\d?/,tooltip:"Remove the legends from all the Function keys."},
{label:"Specials",re:/<.*>/,tooltip:"Remove the special legends, like FontAwesome, WebFont, images, etc, and anything between them in the same slot."},
{label:"Others",re:/^[^A-Za-z0-9\`\~\!\@\#\$\%\^\&\*\(\)\-\_\=\+\[\{\]\}\;\:\'\"\,\<\.\>\/\?\\\|]$|^[A-Za-z\s][A-Za-z\s]+$|\&\#.*|\&.*?;/,tooltip:"Remove the legends from (almost) all the other keys except decals."},
{label:"Decals",re:/.*/,decals:true,tooltip:"Remove the legends from all the Decals."},