ENTER in scripts

Bob Sneidar bobsneidar at iotecdigital.com
Thu Nov 10 10:59:31 EST 2022


Neither of these work for me. 

Bob S


> On Nov 9, 2022, at 20:18 , Martin Koob via use-livecode <use-livecode at lists.runrev.com> wrote:
> 
> On a Mac Extemed keyboard there is an ENTER Key.  Does using it have a different behaviour than using the RETURN key?
> 
> On my laptop of course there is only an RETURN key.  After some searching I did find that Fn + RETURN or cmd + RETURN are equivalent to and ENTER key press.
> 
> I tried and it does work to apply the script changes, however not while the focus was on a filed in the Script Editor.
> 
> For me to get the desired behaviour
> 
> 1. Click on an area on the Script area that is not an object. i.e. the card
> 2. Press Fn + RETURN or cmd + RETURN and the Script changes would be applied.
> 
> I am using a Mac Book Pro M1 Max with Mac OS Monterey.
> 
> Martin
> 
>> On Nov 9, 2022, at 7:59 PM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>> I'm on a Mac and I've been using the enter key to compile for years (back to MetaCard I think.) Are you sure it does nothing? Watch the dot in the script tab and see if it turns green.
>> 
>> --
>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>> HyperActive Software | http://www.hyperactivesw.com
>> On November 9, 2022 4:19:36 PM Bob Sneidar via use-livecode <use-livecode at lists.runrev.com> wrote:
>> 
>>> Hmmm... On MacOS enter does nothing. Return inserts a carriage return. I use tab then cmd-save to format then comile the script.
>>> 
>>> Bob S
>>> 
>>> 
>>>> On Nov 7, 2022, at 13:29 , Ralph DiMola via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>> 
>>>> Well, you learn something exceedingly simple every day. OK I get it. Enter is the same as clicking "Apply". Very convenient! Saves time typing in the SE.
>>>> 
>>>> THANKS!
>>>> 
>>>> 
>>>> Ralph DiMola
>>>> IT Director
>>>> Evergreen Information Services
>>>> rdimola at evergreeninfo.net
>>>> 
>>>> 
>>>> -----Original Message-----
>>>> From: use-livecode [mailto:use-livecode-bounces at lists.runrev.com] On Behalf Of Craig Newman via use-livecode
>>>> Sent: Monday, November 07, 2022 2:08 PM
>>>> To: How to use LiveCode
>>>> Cc: Craig Newman
>>>> Subject: Re: ENTER in scripts
>>>> 
>>>> All.
>>>> 
>>>> "Enter" has always worked for me. And focus has always been required to be in the SE for it to do so.
>>>> 
>>>> This seems logical to me. It would not do for actions specific to certain spaces to be affected, or effected, when not in that space.
>>>> 
>>>> Craig
>>>> 
>>>>> On Nov 7, 2022, at 1:07 PM, Martin Koob via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>>> 
>>>>> Do you mean does pressing the ENTER key does the same thing as clicking the ‘Apply’ button at the top left of the script editor?
>>>>> 
>>>>> The tool tip for the ‘APPLY’ button says.
>>>>> 
>>>>> 	‘compile and apply the current script (Enter, cmd+Return)’
>>>>> 
>>>>> I actually did not know there was a keyboard shortcut for the ‘Apply’ button.  That is a handy tip.
>>>>> 
>>>>> I tried it out and at first it did not work.  That time the focus was on the script field and the text cursor was there.
>>>>> 
>>>>> If I clicked on part of the card outside of the script field then the cmd+Return key combination worked.
>>>>> 
>>>>> If I clicked in another object like the ‘find’ text field or a handler in the list to the left of the text field or on the ‘MatchCase’ checkbox	CMD+Return would not work.
>>>>> 
>>>>> So it looks like it only works when there is no focus on a field or other object.
>>>>> 
>>>>> 
>>>>> In any case it sounds like a bug.   The key combination should work whether the script field has focus or not.
>>>>> 
>>>>> 
>>>>> Since I have never used that key combo before I am not sure whether that behaviour has changed or not.
>>>>> 
>>>>> 
>>>>> Martin Koob
>>>>> 
>>>>> 
>>>>>> On Nov 7, 2022, at 12:45 PM, Niggemann, Bernd via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>>>> 
>>>>>> Klaus wrote
>>>>>> 
>>>>>> 
>>>>>> is it only me or does the ENTER key nothing after hitting while in
>>>>>> script editor?
>>>>>> 
>>>>>> 
>>>>>> 
>>>>>> https://quality.livecode.com/show_bug.cgi?id=23999
>>>>>> 
>>>>>> Please note: in 9.6.9 rc 2 there is some more scriptifying of IDE stacks. Some of them have some quirks.
>>>>>> It is well worth to test 9.6.2 rc 2 to catch as many as possible and report them.
>>>>>> 
>>>>>> Kind regards
>>>>>> Bernd
>>>>>> _______________________________________________
>>>>>> 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
>>>>> 
>>>>> _______________________________________________
>>>>> 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
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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
>>>> 
>>>> 
>>>> _______________________________________________
>>>> 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
>>> 
>>> _______________________________________________
>>> 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
>> 
>> 
>> 
>> 
>> _______________________________________________
>> 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
> 
> 
> _______________________________________________
> 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