Skip to content
This repository has been archived by the owner on Apr 12, 2023. It is now read-only.

Commit

Permalink
Adding a function for the keypress enter on specify variable attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksander Vines authored and lesserwhirls committed Dec 1, 2016
1 parent cedbde3 commit 93e8193
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -302,6 +302,16 @@ function bindHeaderButtonsPluginEvent(headerButtonsPlugin, colNumber, grid, step
$(this).dialog("close");

}
},
open: function() {
$(document).on("keypress", (function(e) {
if(e.which == 13) {
$("button:contains('done')").trigger("click");
}
}));
},
close: function() {
$(document).off("keypress");
}
});

Expand Down

0 comments on commit 93e8193

Please sign in to comment.