Why my key are not tested ?

BlitzMax Forums/BlitzMax Programming/Why my key are not tested ?

Filax(Posted 2006) [#1]
Hi

Why my f... KEY_ENTER is not tested ???

Try to change this line : If event.data=KEY_UP Then
by this line : If event.data=KEY_ENTER Then

But the program made nothing ??? why ???




Dreamora(Posted 2006) [#2]
Because Key_enter has an internal importance on textfields and textareas (-> line break) and thus don't fire an event. (there are some other keys that behave similar)


Filax(Posted 2006) [#3]
And there is absolutely no solution ?????
because i want test the return key from
a textfield url for an internal web browser.


Dreamora(Posted 2006) [#4]
No not unless you modify the underlying C sources or skid decides to change that. (think there was a thread on that, just can't remember in which board.)


Filax(Posted 2006) [#5]
Arghh! !! many thanks Dreamora... :)


Dreamora(Posted 2006) [#6]
I'm sorry.
I've to correct myself.

Return only does not fire event on TextField.
BUT it works on textarea at least on the Filter, so you might try to use that for a similar solution (as you can fully surpress linebreaks by the filter)