New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When editing cell, keyboard navigation shall be disabled #921
Comments
You can override this behaviour. This won't look pretty at all, but currently we fall back to methodologies like the following: Example pulled from our source and stripped for brevity:
See: renderedCell.ts:436 |
Looks like this solution is a deep diving into the code! Thanks for sharing! |
@xwb1989 We had to because row level editing is not supported. |
fixed in current version. left and right arrow keys now move cursor within the cell. i didn't change up and down arrow keys as i don't see the point in allowing this in a text field. |
Do the following changes in ag grid js file. Will work RenderedCell.prototype.onNavigationKeyPressed = function (event, key) { |
@ceolter I don't see this working in latest ag-grid. do I need to use any grid options?. However the above code changes fixed the problem |
@prabhakerb I'm in the editing page of the wiki, and when using the quick editor it works, but when implementing a custom editor like the Numeric Editor the left/right arrows go back to cell navigation. To Add it to a custom editor, add the following based on the same example. // gets called once before the renderer is used NumericCellEditor.prototype.onKeyDown = function(event) { |
this is the key: |
Agree up and down arrow keys dont make sense - how do we achieve same behaviour as excel? That is, when cell is being edited, and down arrow key is pressed, editing is finished and the cell below is selected |
When editing a cell, keys like left and right arrow are not moving the cursor between characters within the cell, instead, it just move the focus to the neighbor cell. Shall keyboard(left,right,up,down arrows) navigation be disabled when editing a cell? Or is there a way to do so in current version?
The text was updated successfully, but these errors were encountered: