PDA

View Full Version : Grid messing up arrow keys in header panel textfield



steven
16 Apr 2007, 1:36 AM
I have an editable grid with a TextField in the headerPanel.
I can type into the field fine but if I try to press the arrow key to move left the grid intercepts the keypress and changes the cell selection in the grid instead.

TextFields that appear when editing a cell in the grid work fine, but TextFields in the headerPanel don't.

Also, I thought I read that the grid could be setup for single click editing instead of double click. Is this possible?

jack.slocum
16 Apr 2007, 2:24 AM
clicksToEdit: 1 in the config.

On your toolbar, you could add:

toolbar.el.swallowEvent(['keypress','keydown']);

and it should stop the grid from receiving the keys.

steven
16 Apr 2007, 2:35 AM
Thanks! Both problems fixed.