What's eating my keystrokes?

dunbarx at aol.com dunbarx at aol.com
Tue Nov 12 21:03:56 EST 2013


I do not really know what you have going on. But perhaps if you placed a "mouseEnter" handler in the stack script, that perhaps:


put the "focusedObject"


or maybe


focus on the target


This might help you track what is going on.


Craig Newman






-----Original Message-----
From: tbodine <lvhdgc7 at gmail.com>
To: use-revolution <use-revolution at lists.runrev.com>
Sent: Tue, Nov 12, 2013 8:31 pm
Subject: What's eating my keystrokes?


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.

_______________________________________________
use-livecode mailing list
use-livecode at lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

 



More information about the use-livecode mailing list