The space bar and the answer command.

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

The space bar and the answer command.

Post by Fermin » Sun May 22, 2016 1:17 pm

Hello, please:
In the dialog box of the ANSWER command, the SPACEBAR also acts accepting the default option.
Is there any way to avoid it and limit to ENTER and RETURN keys just as it's supposed to be?
Thank you very much.

Mac and LC 8.0.1.

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

Re: The space bar and the answer command.

Post by dunbarx » Sun May 22, 2016 10:36 pm

Yipes.

Mac and LC 6.9. I wonder if HC does this. I will check.

So, after nearly 30 years at this, I am astonished to find that the spacebar will dismiss an answer dialog as the default response.

20 years of schooling and they put you on the day shift...

Craig Newman

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The space bar and the answer command.

Post by Klaus » Sun May 22, 2016 10:49 pm

I was also surprised to see that the SPACE bar will "click" the "OK" button!? :shock:
However there is really NOTHING in the scripts of the ASK DIALOG stack that would allow this!?

Not sure if this is a bug or not.

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

Re: The space bar and the answer command.

Post by dunbarx » Sun May 22, 2016 10:53 pm

Klaus.

I would consider it a bug, or at the very least, un unwanted and unwarranted feature, if there could possibly be such a thing. Do you want to send this to QCC, or should I?

Craig

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The space bar and the answer command.

Post by Klaus » Mon May 23, 2016 11:39 am

Hi Craig,

please do, thanks!


Best

Klaus

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7393
Joined: Sat Apr 08, 2006 8:31 pm
Contact:

Re: The space bar and the answer command.

Post by jacque » Mon May 23, 2016 4:05 pm

It may be the user's system setting. Accessibility settings sometimes do this.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

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

Re: The space bar and the answer command.

Post by dunbarx » Mon May 23, 2016 4:51 pm

Submitted as bug 17716.

Craig

Klaus
Posts: 14198
Joined: Sat Apr 08, 2006 8:41 am
Contact:

Re: The space bar and the answer command.

Post by Klaus » Mon May 23, 2016 5:02 pm

Hi Jaque,
jacque wrote:It may be the user's system setting. Accessibility settings sometimes do this.
yes, maybe, but this also happen on my machine and I have not set any of these!


Best

Klaus

SparkOut
Posts: 2947
Joined: Sun Sep 23, 2007 4:58 pm

Re: The space bar and the answer command.

Post by SparkOut » Mon May 23, 2016 6:12 pm

It's obviously a surprise to Mac users, but it's meant to do this on Windows. And tab should switch focus between the alternate button(s).

(I just used the tab key on the keyboard to set focus from the Preview to the Submit button for this post, and submitted with the spacebar)

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

Re: The space bar and the answer command.

Post by FourthWorld » Mon May 23, 2016 6:30 pm

SparkOut wrote:It's obviously a surprise to Mac users, but it's meant to do this on Windows. And tab should switch focus between the alternate button(s).
Same with most Linux environments as well. Somewhere down the road I'll try to get some time to add the Tab key behavior, but as with the Space key we'll want to exclude OS X because it operates differently in some respects from the rest of the world.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Fermin
Posts: 149
Joined: Fri Jun 05, 2015 10:44 pm

Re: The space bar and the answer command.

Post by Fermin » Mon May 23, 2016 11:23 pm

... But does not pass throug A SECOND ANSWER.

Code: Select all

on mouseup
   -- Getting time laps between spacebar keystrokes
   answer "Tap spacebar to get ticks... and click the mouse to finish"
   put the ticks into tCero
   put 1 into eve
   
   repeat forever 
      put "blowoff valve " & eve -- WATCH OUT! without this line, LC probably crashes in 1 or 2 minutes
      if chartonum (" ") is in the keysDown then -- wait for the spacebar
         put eve &" - "& (the ticks - tCero) into line eve of ccc ---------------------------------ACTION
         add 1 to eve  --                               Next event
         wait until the keysDown is empty -- 
      end if
      if the mouse is down then exit repeat ---------      EXIT
   end repeat
   
   answer ccc answer ccc -- THE SECOND ANSWER STAND STILL.
end mouseup

Post Reply