Re: tablelist: <Return> the same as <Tab> when editing.



Óscar Fuentes schrieb:
Csaba Nemethi <csaba.nemethi@xxxxxxxxxxx> writes:

You have to redefine the bindings as follows:

# Enforce the activation of the default bindings
tablelist::defineTablelistEdit

# Make sure <Return> will behave like <Tab>
bind TablelistEdit <Return> { tablelist::goToNextPrevCell %W 1 }

Thank you very much, Csaba.

Is there a way to do it for a specific instance of tablelist, instead of
modifying the global behaviour?

Regards,


There is no easy way. You might try to do it in the command specified as the value of the -editstartcommand option. Notice, however, that you will have to introduce a new binding tag and insert it before TablelistEdit, because the latter precedes the path name of the widget it is associated with (and that widget is highly dependent on the type of the edit window). The details are much too complex for being explained here; just search for TablelistEdit in the distribution file tablelistEdit.tcl to get the idea.

Good luck!

Csaba

--
Csaba Nemethi http://www.nemethi.de mailto:csaba.nemethi@xxxxxxxxxxx
.