##// END OF EJS Templates
protect agains undefined
Matthias Bussonnier -
Show More
@@ -514,7 +514,8 define([
514 KeyboardManager.prototype.bind_events = function () {
514 KeyboardManager.prototype.bind_events = function () {
515 var that = this;
515 var that = this;
516 $(document).keydown(function (event) {
516 $(document).keydown(function (event) {
517 if(event._ipkmIgnore==true||event.originalEvent._ipkmIgnore==true){
517
518 if(event._ipkmIgnore==true||(event.originalEvent||{})._ipkmIgnore==true){
518 return false;
519 return false;
519 }
520 }
520 return that.handle_keydown(event);
521 return that.handle_keydown(event);
General Comments 0
You need to be logged in to leave comments. Login now