ENTER in scripts

J. Landman Gay jacque at hyperactivesw.com
Thu Nov 10 12:17:06 EST 2022


I wonder if you could remap one to send the Mac key code for Enter.

--
Jacqueline Landman Gay | jacque at hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On November 10, 2022 10:00:28 AM Bob Sneidar via use-livecode 
<use-livecode at lists.runrev.com> wrote:

> It does nothing, but to be fair I am using a Windows xternal keyboard (if 
> there is such a thing these days,) on a MacOS laptop, and both "Enter" keys 
> are called, "Enter." Neither does anything in terms of formatting the SE or 
> compiling. It works for me though.
>
> Bob S
>
>
>> On Nov 9, 2022, at 16:59 , 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