Pretty Diff - The difference tool

Accessibility note. <em> tags in the output represent character differences per lines compared.

Summary

Execution time: 0.071 seconds

Number of differences: 34 differences.

Original vs. Modified
......
548548 chr = "\n";
549549 break;
550550 default:
551 chr = lang[key][mode];
551 chr = lang[key][mode&(~VK_CAPS)]; // Ignore CapsLock
552552 break;
553553 }
554554 if (chr) {
......
635635 * it's global event handler. do not process event, if keyboard is closed
636636 */
637637 if (!self.isOpen()) return;
638 // Only process keys if CapsLock is down. We still have to watch for the CapsLock key itself
639 if (!(mode&VK_CAPS) && (e.getKeyCode() != 20)) return;
638640 /*
639641 * record new keyboard mode
640642 */
......
842844 var key = el.id.substring(idPrefix.length);
843845 switch (key) {
844846 case "caps":
845 newMode = newMode ^ VK_CAPS;
847 // Ignore button clicks; only respond to the physical CapsLock
846848 break;
847849 case "shift_left":
848850 case "shift_right":
......
12811283 if (icc>-1 && cc[i-icc]) {
12821284 char_caps = cc[i-icc];
12831285 }
1284 if (char_caps) {
1286 chr[VK_CAPS] = char_normal; // ignore CapsLock key
1285 chr[VK_CAPS] = char_caps;
1286 } else if (char_shift && char_shift.toUpperCase() != char_shift.toLowerCase()) {
1287 chr[VK_CAPS] = char_shift;
1288 } else if (char_normal) {
1289 chr[VK_CAPS] = char_normal.toUpperCase();
1290 }
12911287
12921288 if (shift_caps.hasOwnProperty(i)) {
12931289 csc = __doParse(shift_caps[i]);
......
13551351 ca[VK_SHIFT] = cssClasses.modeShift;
13561352 ca[VK_ALT_CTRL] = cssClasses.modeAlt;
13571353 ca[VK_SHIFT_ALT_CTRL] = cssClasses.modeShiftAlt;
1358 ca[VK_CAPS] = cssClasses.modeCaps;
1354 ca[VK_CAPS] = cssClasses.modeNormal;
1359 ca[VK_SHIFT_CAPS] = cssClasses.modeShiftCaps;
1355 ca[VK_SHIFT_CAPS] = cssClasses.modeShift;
13601356 // these ones are the subject to change
13611357 ca[VK_ALT] = cssClasses.modeNormal;
13621358 ca[VK_CTRL] = cssClasses.modeNormal;
13631359 ca[VK_ALT_SHIFT] = cssClasses.modeShift;
13641360 ca[VK_CTRL_SHIFT] = cssClasses.modeShift;
1365 ca[VK_ALT_CAPS] = cssClasses.modeCaps;
1361 ca[VK_ALT_CAPS] = cssClasses.modeNormal;
1366 ca[VK_CTRL_CAPS] = cssClasses.modeCaps;
1362 ca[VK_CTRL_CAPS] = cssClasses.modeNormal;
13671363 // below ones are not used and should
13681364 ca[VK_ALT_CTRL_CAPS] = cssClasses.modeShiftAltCaps;
13691365 ca[VK_ALL] = cssClasses.modeShiftAltCaps;
13701366
1371 DOM.CSS(nodes.desk).removeClass(ca).addClass(ca[mode]);
1367 DOM.CSS(nodes.desk).removeClass(ca).addClass(ca[mode&(~VK_CAPS)]); // ignore CapsLock
13721368 }
13731369 /**
13741370 * Sets specified state on dual keys (like Alt, Ctrl)
......
Original diff view created as DOM objects by jsdifflib. Diff view recreated as a JavaScript array by Austin Cheney.