Home | History | Annotate | Download | only in resources

Lines Matching refs:mnemonic

13 // Regular expression to match/find mnemonic key.
128 true /* enable mnemonic */);
260 // Map from mnemonic character to item to activate
293 * mnemonic key, preceded by '&'.
294 * @param {MenuItem} item The menu item to be activated by mnemonic
299 * @param {boolean} enableMnemonic True to enable mnemonic, or false
300 * to not to interprete mnemonic key. The function removes '&'
304 var mnemonic = MNEMONIC_REGEXP.exec(label);
305 if (mnemonic && enableMnemonic) {
306 var c = mnemonic[2].toLowerCase();
309 if (!mnemonic) {
312 targetDiv.appendChild(document.createTextNode(mnemonic[1]));
314 targetDiv.appendChild(document.createTextNode(mnemonic[3]));
315 targetDiv.childNodes[1].className = 'mnemonic';
316 targetDiv.childNodes[1].textContent = mnemonic[2];
318 targetDiv.textContent = mnemonic.splice(1, 3).join('');
460 this.classList.add('mnemonic-enabled');
464 this.classList.add('mnemonic-enabled');
482 * Handle mnemonic keys.
486 // Handles mnemonic.