You can control whether or not the arrow key causes click handlers to fire via listGrid.arrowKeyAction -- set to 'selectOnly' if you want to suppress the click handlers but still select records as the user arrows up-or-down through a listGrid
Regards
Isomorphic Softrware
Announcement
Collapse
No announcement yet.
X
-
I just want to mention that we were using 12.1-p20201202 before and did not have the same issue here.
Leave a comment:
-
Listrgrid cell click handler is firing on arrow up/down keypress
Hi all,
I'm using SmartGwt LGPL 12.1-p20241223 and I have this simple listgrid:
When I click on a cell in the grid, I get the expected output in the console, but the problem is that if I also use the up/down arrow keys, the cell click handler will also fire and print out the message.Code:ListGrid grid = new ListGrid(); grid.setFields(...); grid.setData(...); grid.addCellClickHandler(new CellClickHandler() { @Override public void onCellClick(CellClickEvent cellClickEvent) { GWT.log("cell clicked!"); } });
Is this expected behaviour or a bug?
Best Regards
Rasmus NielsenTags: None
Leave a comment: