Re: Intercept TAB key

new topic     » goto parent     » topic index » view thread      » older message » newer message
lpuster said...
DerekParnell said...

The trick of using returnValue(-1) only works for the w32HKeyPress handler. It does not work for the w32HKeyDown handler.

Thanks Derek. I was mislead by the documentation, which says of w32HKeyPress: "Only "visible" keys are reported with this function. To trap "special" keys (such as the cursor keys), use w32KeyDown...". I guess it meant to say "Only keys that produce ASCII codes are reported with this function." I recommend the doc be changed.

Yeah, I know its a bit hard to read. I wrote "visible" in quotes to give a hint that it wasn't quite literal. However, the set of ASCII codes is not quite right either as some of those are not passed to KeyPress and some non-ASCII codes are passed. In general, its those characters that take up space in a byte-size character text file, which includes SPACE, TAB, and CARRIAGE-RETURN, but not BACKSPACE, DEL and some other control-characters. The extended-ASCII characters are passed; those in the range 0x80 to 0xFF inclusive.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu