Le 4 oct. 06 à 22:17 Soir, Terry Ford a écrit:

On Oct 4, 2006, at 12:49 PM, Arnaud Nicolet wrote:

Le 4 oct. 06 à 21:21 Soir, Terry Ford a écrit:
That's correct. The Keydown event only recognizes keypresses that can return an ascii code number. The modifier and Function keys do not get picked up in Rb as they have no true ascii value.

Almost correct, but the function keys have an ascii value (it's 16 for every key.

Note that I said a "true" ascii value. Perhaps I should have said a representative ascii value that could identify the key that is pressed. The value 16 is simply one of the old assigned Control characters in ascii. The modifier keys return nothing.

You're completely right.
I'm also right since RB actually recognises function keys.

The exceptions are F1-F4 which are used to undo-cut-copy-paste (on Mac, at least) and return the same ascii values as z-x-c-v (since F1-F4 actually generate command+ {z-x-c-v})).

That is also application generated by REALbasic and not representative of the actual keypress.

Well, not only from REALbasic. The event manager certainly contains these informations.

But you're right: the only way to know which function key has been pressed is to use the keyboard class.

Arnaud_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

Reply via email to