Is this expected behaviour?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
chris25
Posts: 354
Joined: Tue Oct 08, 2013 9:32 pm

Is this expected behaviour?

Post by chris25 » Thu Nov 21, 2013 6:04 pm

On arrow key down, that is 65364, as well as the box moving within the stack window I am periodically but regularly getting the LC green splash screen appear and also the application window stack gets grayed out (as if not selected) and the Script editor window becomes the focus, all this is happening while the object in the application stack window is moving at the same time that my finger is on the arrow key down.

Code: Select all

on moveBox
   if keysdown() = 65362 then
      set the top of the button "box" to the top of the button "box" - 1
   end if
   if keysdown() = 65364 then
      set the bottom of the button "box" to the bottom of the button "box" +1
   end if
   if keysDown() = 65361 then
      set the left of the button "box" to the left of the button "box" - 1
   end if
   if keysdown() = 65363 then
      set the right of the button "box" to the right of the button "box" +1
      end if

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 10333
Joined: Wed May 06, 2009 2:28 pm

Re: Is this expected behaviour?

Post by dunbarx » Thu Nov 21, 2013 7:00 pm

How do you invoke "moveBox"?

Craig

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

Re: Is this expected behaviour?

Post by FourthWorld » Thu Nov 21, 2013 7:05 pm

Turn off the navigationArrows global property (easily done in Preferences, with the "Arrow keys navigate through cards" option.

That behavior is "normal" only in that it reflects a certain legacy, but I recently initiated a discussion with the team to consider turning it off by default to avoid confusing people like you and me.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

chris25
Posts: 354
Joined: Tue Oct 08, 2013 9:32 pm

Re: Is this expected behaviour?

Post by chris25 » Thu Nov 21, 2013 7:32 pm

dunbarx wrote:How do you invoke "moveBox"?

Craig
With the arrow keys

chris25
Posts: 354
Joined: Tue Oct 08, 2013 9:32 pm

Re: Is this expected behaviour?

Post by chris25 » Thu Nov 21, 2013 7:33 pm

Thankyou Richard

Post Reply