:: Forum >>
Capture key Enter on pressed in a grid
I have a grid and it would like to capture the key "enter" when it was
pressed, I tried the code below but it didn't work. Could you help me?
grid.refresh();
grid.setEvent("onkeypress", function(e) {
var keycode;
if (window.event) keycode = window.event.keycode;
else if (e) keycode = e.which;
if (keycode=13) {
Alert("Enter");
}
});
Thanks.
Lourival Queiroz
Thursday, September 11, 2008
I believe this might be what you're looking for:
obj.onKeyEnter=function() {}
Example of use:
/javascript.forum.17735.3/knowing-wich-of-the-multiple.html
Steve
Thursday, September 11, 2008
This topic is archived.
Back to support forum
Forum search