Player Control and focus

Paul Hibbert paul at livecode.org
Sat Nov 19 01:13:00 EST 2016


In a quick test on Mac, you can still trap the rawKeyDown in the player control and respond to the result so…

on rawKeyDown pKey

if pKey = "65363" then go next card

if pKey = "65361" then go prev card

pass rawKeyDown

end rawKeyDown


…Should work.

Paul

> On Nov 18, 2016, at 6:17 PM, Peter Bogdanoff <bogdanoff at me.com> wrote:
> 
> I’m seeing:
> 
> LC 6: click on a player control to give it focus and the keyboard spacebar pauses and resumes the player.
> 
> LC 8.1.2 rc2: click on a player to give it focus and the keyboard spacebar pauses and resumes the player, the left arrow key moves the playhead backwards, and the right arrow key tries to move it forward.
> 
> Is there a property that turns this behavior off and on?
> 
> This behavior is a challenge when I want the spacebar to pause/resume, but the arrow keys to navigate cards.
> 
> These are all standard interface conventions, but the implementation in LC 8 seems, well, undocumented.
> 
> Peter Bogdanoff
> _______________________________________________
> 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