Re: NumPad Enter key on Win XP

new topic     » goto parent     » topic index » view thread      » older message » newer message

Marco Achury wrote:
> 
> 
> I continue checking and note that also line 2277 in ed.exe 
> must to changed to accept key 284 (NumPad Enter), may be 
> there is other places in the program where user key is compared 
> with CR variable, and you must to do similar corrections.
> 
> Line 2277 is now:
> }}}
<eucode>
> elsif key = CR or key = 284 then
> </eucode>
{{{

> 
> 
> By sure other special keys reported as not working on exwc 
> have diferent code that when working on ex.exe and you must 
> to do similar corrections on ed.ex and other programs.
> 
> 
> +-+-+-+-+-+-+-+
> Marco A. Achury
> Caracas, Venezuela
> +58-414-3142282

Hi

Edita is a windows specific program, so proably doesn't need key translations.

However, what I would probably do, to make this clear, is define

constant NUM_PAD_ENTER = 284

at the top of the program,

then, instead of the above use

elsif key = CR or key = NUM_PAD_ENTER then

If you want to do cross platform key entry stuff, then use the platform()
function. 

http://euwiki.ayo.biz/Text_mode

the euphoria wiki, is a good place to start, it includes a lot, but probably not
all,
key equivalencies.

Chris

ps, I still think euwiki is an under used snippet resource, post more!

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu