× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



On Wed, 4 Sep 2002, Steven Kurylo wrote:
>
> { 0x0D,   K_FIELDEXIT },   /* Numeric enter */
>
> Yes?
>

Well, not exactly.   You're right in that this would translate the RETURN
character (VK_RETURN = 13 = 0x0d) to be the 5250 FIELD EXIT command.
However, since you're operating on a character message, it will translate
that way for any key sequence that generates a carriage return message.
In other words, BOTH enter keys will now send field-exit.

If you just want the numeric enter key, you need to handle it as a
key-down message, so you need to make your changes in the keydown2msg
array.

to do that, find the section of code that looks like this:

   { 0,          VK_ADD,          K_FIELDPLUS  , 0, 0 },
   { 0,          VK_SUBTRACT,     K_FIELDMINUS , 0, 0 },
   { 0,          VK_SCROLL,       K_HELP       , 0, 0 },
   { -1, -1, -1, -1, -1 },
};

And add a line that maps VK_RETURN to K_FIELDEXIT, but only when the
"ext" (extended keyboard) bit is on, like so:

   { 0,          VK_ADD,          K_FIELDPLUS  , 0, 0 },
   { 0,          VK_SUBTRACT,     K_FIELDMINUS , 0, 0 },
   { 0,          VK_SCROLL,       K_HELP       , 0, 0 },
   { 0,          VK_RETURN,       K_FIELDEXIT  , 0, 1 },  /* ADDED THIS */
   { -1, -1, -1, -1, -1 },
};






As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.