keyboard.html revision d9c6583f91a300de45f8166de9de85efb2a13246
0N/A body .yui3-button.wide {
0N/A body .yui3-button.space {
0N/A Y.Array.each(keys, function(key){
0N/A var button = new Y.ButtonGenerator({
370N/A if (key[0] === "[" && key.length > 1) {
608N/A button.get('srcNode').addClass('wide');
370N/A button.get('srcNode').addClass('space');
370N/A button.set('type', 'toggle');
0N/A var key = e.target.getContent();
0N/A newContent = Y.Lang.trimRight(newContent);
370N/A textarea.set('value', newContent);
370N/A textarea.set('value', content + '\t');
0N/A textarea.set('value', content + ' ');
370N/A textarea.set('value', content + '\n');
370N/A key = key.toUpperCase();
370N/A textarea.set('value', content + key);
449N/A Y.Object.some(codes, function(val, key){
440N/A node.toggleClass('yui3-button-selected');
var nodeList = Y.all('#keyboard .yui3-button');
Y.Array.each(altKeys, function(pair){
nodeList.each(function(node){
if (node.getContent() === pair[x]) {
node.setContent(pair[y]);
var nodeList = Y.all('#keyboard .yui3-button');
nodeList.each(function(node){
var key = node.getContent();
if (key.length === 1) { // Only need to worry about the 1-character 'input' buttons
key = key.toUpperCase();
key = key.toLowerCase();
node.setContent(key);