Lines Matching refs:identifier
149 function keyId(identifier, i) {
150 return identifier + '-key-' + i;
156 function keyTextId(identifier, i) {
157 return identifier + '-key-text-' + i;
163 function shortcutTextId(identifier, i) {
164 return identifier + '-shortcut-text-' + i;
175 * Returns a list of the class names corresponding to the identifier and
178 function getKeyClasses(identifier, modifiers) {
184 if ((identifier == '2A' && contains(modifiers, 'SHIFT')) ||
185 (identifier == '1D' && contains(modifiers, 'CTRL')) ||
186 (identifier == '38' && contains(modifiers, 'ALT'))) {
188 classes.push(IDENTIFIER_TO_CLASS[identifier]);
290 var identifier = layout[i][0];
291 var keyData = keyboardGlyphData.keys[identifier];
292 var classes = getKeyClasses(identifier, modifiers, keyData);
299 var key = document.getElementById(keyId(identifier, i));
306 var keyText = document.getElementById(keyTextId(identifier, i));
315 var shortcutText = document.getElementById(shortcutTextId(identifier, i));
360 var identifier = array[0];
367 key.id = keyId(identifier, i);
375 keyText.id = keyTextId(identifier, i);
381 shortcutText.id = shortcutTextId(identifier, i);