// Intercept enter and tab, and assign their new functions.
keyDown: function(event) {
if (this.frozen == "leave") this.frozen = null;
- if (this.frozen && (!this.keyFilter || this.keyFilter(event.keyCode))) {
+ if (this.frozen && (!this.keyFilter || this.keyFilter(event))) {
event.stop();
this.frozen(event);
return;
// keydown event does not prevent the associated keypress event
// from happening, so we have to cancel enter and tab again
// here.
- if ((this.frozen && (!this.keyFilter || this.keyFilter(event.keyCode))) ||
+ if ((this.frozen && (!this.keyFilter || this.keyFilter(event))) ||
event.code == 13 || (event.code == 9 && this.options.tabMode != "default") ||
(event.keyCode == 32 && event.shiftKey && this.options.tabMode == "default"))
event.stop();