user2675443
user2675443

Reputation:

Cannot press space into text field, jquery ui bug?

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..

http://jsfiddle.net/TyfK7/

Upvotes: 2

Views: 537

Answers (1)

OzrenTkalcecKrznaric
OzrenTkalcecKrznaric

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

Related Questions