##// END OF EJS Templates
protect shift extend on Uppercase
Matthias BUSSONNIER -
Show More
@@ -357,6 +357,10 b' var IPython = (function (IPython) {'
357 typed_characters = "";
357 typed_characters = "";
358 select.keydown(function (event) {
358 select.keydown(function (event) {
359 var code = event.which;
359 var code = event.which;
360 if (code === 16) {
361 // nothing on Shift
362 return;
363 }
360 if (code === 13 || code === 32) {
364 if (code === 13 || code === 32) {
361 // Pressing SPACE or ENTER will cause a pick
365 // Pressing SPACE or ENTER will cause a pick
362 event.stopPropagation();
366 event.stopPropagation();
@@ -366,7 +370,7 b' var IPython = (function (IPython) {'
366 // We don't want the document keydown handler to handle UP/DOWN,
370 // We don't want the document keydown handler to handle UP/DOWN,
367 // but we want the default action.
371 // but we want the default action.
368 event.stopPropagation();
372 event.stopPropagation();
369 } else if (code>64 && code <90 || code==8){
373 } else if (code>64 && code <=122 || code==8){
370 // issues with _-.. on chrome at least
374 // issues with _-.. on chrome at least
371 if(code != 8)
375 if(code != 8)
372 {
376 {
General Comments 0
You need to be logged in to leave comments. Login now