What's eating my keystrokes?

tbodine lvhdgc7 at gmail.com
Tue Nov 12 20:30:59 EST 2013


Hi all.

Well into my first big LiveCode game and need some ideas to find a bug. It's
a game that allows both mouse and keyboard interaction. The player can start
with the keyboard, but if he then uses the mouse to click certain groups,
the card then loses the keyboard focus. Keystrokes are then lost to keydown,
escapeKey and functionKey card scripts.

The groups being clicked are a combination of fields and graphics. They form
a grid that has another group, and that group has the mouseup detection that
figures out which graphic has been clicked.

My thought is the fields are grabbing the focus, but I don't see this
happening -- the cursor remains an arrow over the fields. (The fields are
display only.) When I click on other (nonfield) objects on the card, the
problem persists. The only way to regain access to the keyboard is to
deactive the stack by clicking on another part of the IDE (message box) and
then back. Then I can use both keystrokes and clicks without any loss.

Any ideas on how to trap the trapper? Is there a command that reveals what
object has focus?

Thanks!
Tom Bodine



--
View this message in context: http://runtime-revolution.278305.n4.nabble.com/What-s-eating-my-keystrokes-tp4672245.html
Sent from the Revolution - User mailing list archive at Nabble.com.




More information about the use-livecode mailing list