-- Went with another tab, instead of the dialog, so you could better see the outcome of an action.
-- Replaced the "move legend pairs" buttons with an "align legends" function, which I think covers most of the cases, while also offering more possibilities.
<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>
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove all the legends from all the keys. Does not remove decals."ng-click="removeLegends('all')"> All</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the legends from all the Alphabetical keys."ng-click="removeLegends('alphas')"> Alphas</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the legends from all the Number keys."ng-click="removeLegends('nums')"> Nums</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the legends from all the Punctuation keys."ng-click="removeLegends('punct')"> !@#$p[};"<.?..</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the legends from all the Function keys."ng-click="removeLegends('fn')"> Fn</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the special legends, like FontAwesome, WebFont, images, etc, and anything between them in the same slot."ng-click="removeLegends('specials')"> Specials</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the legends from (almost) all the other keys except decals."ng-click="removeLegends('others')"> Others</button>
</div>
<divclass="btn-group btn-group-xs"role="group">
<buttontype="button"class="btn btn-success hint--top hint--rounded"data-hint="Remove the legends from all the Decals."ng-click="removeLegends('decals')"> Decals</button>
<aclass="hint--top hint--rounded"data-hint="Move both left column legends to the middle column."ng-click="moveLegends('move',0,6,1,7)"><imgsrc="img/left2middle.png"></a>
</td>
<td>
<aclass="hint--top hint--rounded"data-hint="Move both middle column legends to the right column."ng-click="moveLegends('move',1,7,2,8)"><imgsrc="img/middle2right.png"></a>
</td>
<td>
<aclass="hint--top hint--rounded"data-hint="Move both right column legends to the left column."ng-click="moveLegends('move',2,8,0,6)"><imgsrc="img/right2left.png"></a>
</td>
<td>
<aclass="hint--top hint--rounded"data-hint="Swap left column top and bottom legends."ng-click="moveLegends('swap',0,6)"><imgsrc="img/swaptopbottom.png"></a>
<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,133 +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."},