GetChar in firefox

Monkey Forums/Monkey Programming/GetChar in firefox

Skn3(Posted 2012) [#1]
getchar in firefox seems to be producing repeat characters for certain keys.



I havn't tested all keys, but confirm that this is happening for backspace and space.


marksibly(Posted 2012) [#2]
Hi,

GetChar is supposed to repeat (in an OS defined way) - it's what the OS sends the app in terms of characters.

Use KeyHit/KeyDown for raw key states.


Skn3(Posted 2012) [#3]
Hey, sorry maybe I wasn't making sense.. Just that Firefox produces double presses whereas the other browses just produce one.

So pressing space once equals twice in Firefox.

The os defined repeat behaviour is good, definitely don't delete that as a #bug, but this key-doubling is a different issue...


Skn3(Posted 2012) [#4]
You an see a demo of it here:
http://www.monkeycoder.co.nz/Community/posts.php?topic=2397

try typing spaces and you will see it inserts two spaces..