Arrow Keys that actually work in Livecode 8

Something you want to see in a LiveCode product? Want a new forum set up for a specific topic? Talk about it here.

Moderator: Klaus

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Arrow Keys that actually work in Livecode 8

Post by richmond62 » Sat May 07, 2016 7:33 pm

They don't seem to.
Last edited by richmond62 on Wed Jun 08, 2016 10:44 am, edited 1 time in total.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Arrow Keys that actually work in Livecode 8

Post by sturgis » Sat May 07, 2016 8:14 pm

Interestingly, if you place a scrolling list field (or perhaps any field?) onto the card, and the select a line in the card so that the field has focus.. The arrowkey handler in your card starts working.

Apparently the field receives the arrowkey just fine, has no handler so its passed up the message path. Looks like the card by itself won't receive an arrowkey without some intermediary to pass it on.

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Arrow Keys that actually work in Livecode 8

Post by richmond62 » Sat May 07, 2016 8:37 pm

Looks like the card by itself won't receive an arrowkey without some intermediary to pass it on.
Gosh, I hope not; that's going to be a "right fag" in many respects.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Arrow Keys that actually work in Livecode 8

Post by sturgis » Sat May 07, 2016 8:40 pm

Its a found bug. Not sure the "adding an intermediary object.." trick is known yet though.
http://quality.livecode.com/show_bug.cgi?id=17470

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Arrow Keys that actually work in Livecode 8

Post by richmond62 » Sat May 07, 2016 8:45 pm

There should not have to be any "intermediate trick", and
my experience of advertising intermediate tricks or work-arounds
is that it slows down the Livecode people from taking things
that have to be SORTED OUT seriously.

The simple fact is that a Card should receive messages from
the arrow keys.

sturgis
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 1685
Joined: Sat Feb 28, 2009 11:49 pm

Re: Arrow Keys that actually work in Livecode 8

Post by sturgis » Sat May 07, 2016 8:50 pm

The only reason I mentioned it isn't to use it as a workaround. More of an indication of HOW its broke. Yes, the card should receive the arrowkey, intermediary or not, and the dictionary agrees. (as does history)

Going to add the information to the bug in hopes that it will help them narrow down the problem.

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10043
Joined: Sat Apr 08, 2006 7:05 am
Contact:

Re: Arrow Keys that actually work in Livecode 8

Post by FourthWorld » Sat May 07, 2016 9:50 pm

@Richmond: was this affecting your work in earlier v8 builds, or is it new in v8.0 GM?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Arrow Keys that actually work in Livecode 8

Post by richmond62 » Sun May 08, 2016 8:39 am

That is a moot point as I never really used any of the earlier versions of LC 8 for any 'work' at all
as my experience on Xubuntu 64-bit was so negative with the thing freezing the computer
(something I have almost never seen since I transitioned from predominantly Macintosh to
predominantly Linux about 9 years ago) and otherwise behaving very oddly.

Certainly, I am not going to try any work on Livecode 8 for now as the "stable" release
is not really cutting the mustard.

martyWell
Posts: 4
Joined: Mon Jul 14, 2014 4:04 pm

Re: Arrow Keys that actually work in Livecode 8

Post by martyWell » Sat Jun 04, 2016 9:24 pm

I'm running Indy 8.0.1 on a macbook air. I was going through some of the academy lessons and tearing my hair out -- couldn't get anything to happen using the arrowkey. I did a simple test and built the stack as a standalone. In the standalone, the arrowkey functioned as intended. This is a card script that moves an object up,down, left, right based on the arrow key that is pressed. So, this is not working in browse mode inside the IDE, but does work on a built standalone. I didn't take the time to read all of the posts, but just wanted to mention this and hope it gets fixed (if it hasn't been already).

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Arrow Keys that actually work in Livecode 8

Post by richmond62 » Sun Jun 05, 2016 2:08 pm

Thanks; that's well worth knowing, although it's not much good
for development purposes.

livecodeali
Livecode Staff Member
Livecode Staff Member
Posts: 194
Joined: Thu Apr 18, 2013 2:48 pm

Re: Arrow Keys that actually work in Livecode 8

Post by livecodeali » Mon Jun 06, 2016 2:26 pm

It is fixed and merged and the fix will be included in 8.0.2-rc-1 as soon as we can get that out.

https://github.com/livecode/livecode-ide/pull/1197

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Arrow Keys that actually work in Livecode 8

Post by richmond62 » Mon Jun 06, 2016 6:45 pm

It is fixed and merged and the fix will be included in 8.0.2-rc-1 as soon as we can get that out.
Lovely!

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10080
Joined: Fri Feb 19, 2010 10:17 am

Re: Arrow Keys that actually work in Livecode 8

Post by richmond62 » Wed Jun 08, 2016 10:07 am

The Arrow Keys work "as expected" in 8.0.2 rc-1.

For anyone who doesn't believe it download this stack and see for yourself.
ArrowTest.png
Attachments
Arrow Test.livecode.zip
Here's the stack.
(10.63 KiB) Downloaded 215 times

Post Reply