Reputation:
not sure if this bug caused buy jquery ui tab, I at first thought was my keydown function error
function inputKeydown(e) {
var $this = $(e.target).closest('input[type="text"]');
if (e.keyCode == 13) {
$this.blur();
}
}
but it's not..
Upvotes: 2
Views: 537
Reputation: 5646
To sum it up, easiest solution would be to use this (e.g. on ready-event):
delete($.ui.tabs.prototype._tabKeydown);
And the 'forbidden' keys (space and arrows) should work now. pay atention that it could cause other problems.
EDIT
AFAIK, following solves the same problem without errors:
$.widget( "ui.tabs", $.ui.tabs, {
_tabKeydown: function(e) {
this._super( '_tabKeydown' );
}
});
Upvotes: 1