[wx-dev] Ctrl-Enter as a navigation key on wxMSW
Julian Smart
julian at anthemion.co.uk
Sat Mar 3 02:03:54 PST 2007
Hi Robin,
Robin Dunn wrote:
> I've noticed that if a multi-line text ctrl is in a window hierarchy
> without any wxTAB_TRAVERSAL styled parents then Ctrl-Enter will insert
> newlines, but if a parent has wxTAB_TRAVERSAL then Ctrl-Enter is used
> as a navigation key and acts basically like Tab. This becomes a
> problem in situations like wxGrid where the Enter key is used for
> other things, as then there is no way to insert a newline in the
> textctrl. Is there a way, or does it make sense to add one, to
> prevent Ctrl-Enter from being used for navigation? (Besides not using
> wxTAB_TRAVERSAL)
One possibility is that specifying wxTE_PROCESS_ENTER results in both
Enter and Ctrl-Enter being processed by the control. If the Ctrl-Enter
event isn't processed by the control, then the default navigation
behaviour is executed. However, implementing this is another matter...
Regards,
Julian
--
Julian Smart, Anthemion Software Ltd.
28/5 Gillespie Crescent, Edinburgh, Midlothian, EH10 4HU
www.anthemion.co.uk | +44 (0)131 229 5306
Tools for writers: www.writerscafe.co.uk
wxWidgets RAD: www.anthemion.co.uk/dialogblocks
More information about the wx-dev
mailing list