My sticky fingers
Dar Scott Consulting
dsc at swcp.com
Thu Jun 13 17:24:51 EDT 2019
This works for me on macOS Mojave 10.14.15 using LiveCode 9.0.4. By "works", I mean it does some things that I think might be close to what you want. I have a field named "test field" on a card and button to clear that. I hold down keys while the field does not have the focus. I would guess you can extend this to backspace.
local keyIsUp = true
on arrowKey k
if keyIsUp then
doSomething k
end if
put false into keyIsUp
log "arrowKey" && k
end arrowKey
on keyDown k
if keyIsUp then
doSomething k
end if
put false into keyIsUp
log "keyDown" && k
end keyDown
on rawKeyUp
put true into keyIsUp
log "rawKeyUp"
end rawKeyUp
command doSomething k
log "did" && k
end doSomething
command log s
put s & tab & the long seconds & lf after field "test field" of me
end log
> On Jun 10, 2019, at 11:02 AM, Richmond via use-livecode <use-livecode at lists.runrev.com> wrote:
>
> Many things may be worn out . . . certainly
> my patience is wearing a bit thin when I cannot
> stop a command repeating itself because an end-user has got his/her finger
> stuck on an arrowkey.
>
> Richmond.
>
> On 10.06.19 19:40, JB via use-livecode wrote:
>> The keyboard might be worn out.
>>
>> JB
>>
>>
>>> On Jun 10, 2019, at 8:05 AM, J. Landman Gay via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>
>>> This sounds like the system's key repeat rate is set too fast.
>>>
>>> --
>>> Jacqueline Landman Gay | jacque at hyperactivesw.com
>>> HyperActive Software | http://www.hyperactivesw.com
>>> On June 10, 2019 3:44:57 AM Richmond via use-livecode <use-livecode at lists.runrev.com> wrote:
>>>
>>>> Everyyyyyyytttttime I try tooooooooo typppppe
>>>> sooooommmmmethhhhing myyyy fffffinnnngerrrrrrs
>>>> ggggget stuuuuuuuck on the keeeeeys tooooo
>>>> long . . .
>>>>
>>>> Especially in LiveCode (!)
>>>>
>>>> So?
>>>>
>>>> on keyDown
>>>> do something
>>>> get me the hell out of this so it doesn't happen more than once
>>>> end keyDown
>>>>
>>>> ?
>>>>
>>>> Richmond.
>>>>
>>>> _______________________________________________
>>>> 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