Jacques,

When you hit Ctrl-m you generate the same keyboard code as when you hit the
enter key.  Twas ever thus (at least for the past 25 years, and not just in
Windows and DOS).

There's some other ctrl keys that do dual purpose as well - ctrl-h for
backspace, ctrl-i for tab and ctrl-l for line feed for example.

Whether these ctrl-keys are recognized and used by the application depends
on how the application is built.  For example ctrl-m works as Enter in the
MapBasic window and the Text Object text window, whilst ctrl-h works as
backspace in the Text Object text window but not in the MapBasic window.

Here's a link from google (search ctrl-m enter) that shows the control key
codes:
http://cse.unl.edu/~berberov/tables/ascii.html

Hope this helps.

Best Regards,

Martin Higham
Avantra Geosystems

ph (61 3) 8504 0428   0425-730-428
fx (61 3) 9596 7997
www.avantra.com.au




> -----Original Message-----
> From: Jacques Paris [mailto:[EMAIL PROTECTED]
> Sent: Friday, 8 April 2005 01:14
> To: MIL
> Subject: MI-L ctrl+M and MapBasic Window
>
>
> I just found some "interesting" behavior involving the choice of short cut
> and the MapBasic window.
>
> I just had an app that was using Ctrl+M as a short cut. When that app was
> loaded (as an item or sub-menu (two different versions) ) in the
> windows or
> in the tools menu (two different versions) , if I wanted to run something
> from the MapBasic window (via <enter>) the app was automatically
> run. I had
> to unload the app to be able to use the MBWindow.
>
> The same application with a Shift+M would not generate the same problem.
>
> How come <enter> in the MBWindow becomes Ctrl+M ???
>
> MI 6.5 + Windows2000 and MI7.0 +Windows XPFamily
>
> Jacques Paris
> e-mail  [EMAIL PROTECTED]
> MapBasic-MapInfo support  http://www.paris-pc-gis.com
>
>
>
>
> ---------------------------------------------------------------------
> List hosting provided by Directions Magazine | www.directionsmag.com |
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> Message number: 15993
>


---------------------------------------------------------------------
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Message number: 16004

Reply via email to