Hi All,
I need a bit of design help with a query form that I am doing in WebDev-12.
What I am trying to achieve is: User enters a search criteria in an edit control and click a query button. A query is run and the result is displayed below.
So far it is simple. My users want to press the 'Enter' key instead of clicking the 'Query' button!!?. Ok I thought.. I will add the 'Enter' key as the shortcut for my query button.
Great.. It worked.. Except that I also have a memo field 'Multi-line edit control' on the same page, and now every-time you press 'Enter' on this control to add a carriage-return the query runs. doah !!
Is there a way I can set the button shortcut by code? That way I can detect which control has the focus and either run the query or not.
Or is there a much better way altogether?
Thank You
Shahine