:: 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.setEvent("onkeypress", function(e) {
var keycode;
if (window.event) keycode = window.event.keycode;
else if (e) keycode = e.which;
if (keycode=13) {

Lourival Queiroz
Thursday, September 11, 2008
I believe this might be what you're looking for:
obj.onKeyEnter=function() {}

Example of use:
Thursday, September 11, 2008

This topic is archived.

Back to support forum

Forum search