We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 967454c commit aa63c4bCopy full SHA for aa63c4b
ui/jquery.ui.button.js
@@ -137,6 +137,14 @@ $.widget( "ui.button", {
137
.bind( "keyup.button", function() {
138
$( this ).removeClass( "ui-state-active" );
139
});
140
+ if (this.buttonElement.is("a")) {
141
+ this.buttonElement.keyup(function(event) {
142
+ if (event.keyCode == $.ui.keyCode.SPACE) {
143
+ // TODO pass through original event correctly (just as 2nd argument doesn't work)
144
+ $(this).trigger("click");
145
+ }
146
+ })
147
148
}
149
150
this._resetButton();
0 commit comments