Hi,
i’ve this code:
SELECT CASE ASCB(key)
case 28
msgbox "left arrow"
case 29
msgbox "right arrow"
case else
return false
end select
Works like a charm when focus is not in a textfield … while when i’m in a textfield the event handlers is not detect, any workaround to fix it ?
and for the textfield you have this code in the keydown event?
So you do not want to be able to use the arrow keys in the TextField ?
(I am able to NEED to use the Arrow Keys in TextField)
Else, change your design and use the Command key with the Arrow Keys
Look in the docs for Keyboard.
http://documentation.xojo.com/api/hardware/keyboard.html