Opened 11 years ago
Closed 8 years ago
#10734 closed defect (patchwelcome)
ComboBox as cell of DataGrid does not page correctly through options on ENTER key
Reported by: | engshien | Owned by: | Evan |
---|---|---|---|
Priority: | high | Milestone: | future |
Component: | DojoX Grid | Version: | 1.4.0 |
Keywords: | Cc: | ||
Blocked By: | Blocking: |
Description
Create dojox.grid.cells.ComboBox? with pageSize less than the number of options so that "More choices.." appears in the options list. If you select "More choices.." with a mouse click, it pages properly. However, if you select "More choices.." with the ENTER key, it does not page and you get the text "More choices..." as the value of the ComboBox?.
My analysis is that ComboBox? depends on getting the ENTER event to handle paging, but that onKeyDown in dojox.grid._Events stops ENTER from propagating to the ComboBox?.
My hack locally to get around this is to override DataGrid? onKeyDown:
dojo.declare("MyDataGrid?", dojox.grid.DataGrid?, {
onKeyDown: function(e) {
if (e.keyCode == dojo.keys.ENTER) {
return; let ENTER event propogate to ComboBox?
} this.inherited(arguments);
}
});
Of course, this hack is preventing the DataGrid? from seeing the ENTER event.
Change History (5)
comment:1 Changed 11 years ago by
Owner: | Nathan Toone deleted |
---|
comment:2 Changed 10 years ago by
Milestone: | tbd → future |
---|---|
Owner: | set to evan |
comment:3 Changed 10 years ago by
Owner: | changed from evan to Evan |
---|
comment:4 Changed 8 years ago by
comment:5 Changed 8 years ago by
Resolution: | → patchwelcome |
---|---|
Status: | new → closed |
Unassigning my tickets.