On Wed, 15 Aug 2001, John Levon wrote:

> how the bally hell do you get the key pressed from an InputCB ?
>
> I need input_search is FormCitation to only search if I've pressed return !

Let me guess, you are trying to run your search from the valid input
checking routine when what you should be doing is handling a
command-and-control signal.

Don't.

Go to the archive and have a read of the rants from back around February
about people misusing the input() function.

If you want <Enter> to be a shortcut for something -- like the "search"
button then make that button a "return-button" or whatever the xforms name
is.  Then assign it a callback of its own -- or as I suggested in
February: create a command() function similar to input() that only handles
command and control actions.  Actually, in Feb I probably suggested
control() but that is a bad name so use command() instead.  That was
during a buttoncontroller flame war.

Allan. (ARRae)

P.S.  If you really must misuse/abuse the input() routine as it seems you
are then take a look at the input filters in xforms_helpers.C

Reply via email to