Submitted by lucasd on 2010/12/05 18:46
Using 0.9.25H build 12/3/2010 (installed):
 
I have 'enter' set to create a new item in my grids, and this normally works as expected. However, if I make a column other than "Item" into the tree column, then 'enter' no longer creates a new item in the "Item" column. (In other words, with cursor anywhere in the "Item" column, 'enter' does not create a new item.)  However, using the menu to insert a new item still works as expected. As far as I can tell, this is a bug... can others verify?
 
Thanks,
Lucas

Comments

Ah, it's good you mention that as I was disturbed by the same issue last week as I was working in a grid with another field as the tree column.
In any case, tree column or not, it would be nice to be able to create a new item by pressing enter, wherever the focus is.

lucasd

2010/12/05 20:35

In reply to by Armando

Yes, the way you put it is better. It's not actually a 'bug', I guess, so much as a feature request. Currently 'enter' only creates a new item in the tree column, however one has that arranged. But at first glance I don't see any reason not to have 'enter' create a new item in any column --- but maybe there's something I'm not thinking of?
 

Armando

2010/12/06 02:00

In reply to by lucasd

[quote=lucasd]
Yes, the way you put it is better. It's not actually a 'bug', I guess, so much as a feature request. Currently 'enter' only creates a new item in the tree column, however one has that arranged. But at first glance I don't see any reason not to have 'enter' create a new item in any column --- but maybe there's something I'm not thinking of?
 
[/quote]
 
You mean that pressing enter (or ctrl+enter) in a column (not the item one) would/should :
1- create a new item
2- keep the focus in the current column, ready to enter data. (Rather than 1- not creating any new item, 2- note leave the focus in the same column)
 
If that's what you mean, I agree 100%. I don't think it conflicts with anything else.

This is by design, as Ecco also behaved this way. Items are created in the items column.
 
That said, it is really easy to add a grid option to change this and allow items to be created in all columns
 

lucasd

2010/12/06 11:20

In reply to by Pierre_Admin

Okay, that makes sense. Actually, it turns out there is a very easy way to get the functionality I am looking for. If I create "enter" as a keyboard shortcut for "Item | Insert | New Item", then it works in any column. (Same goes for "ctrl+enter" for sub-item, although I'm not sure how to re-create "alt-enter" type behaviour, since I can't find the corresponding command in the menu.)

Armando

2010/12/06 11:46

In reply to by lucasd

Can enter still exit editing mode without creating an item ?

lucasd

2010/12/06 12:00

In reply to by Armando

No, but F2 works fine.

MANTIS :
1087
Allow "enter" keyb. Shortcut to create items from/in any column  New feature