Key event handler and ETTR

Started by garry23, January 22, 2021, 02:00:23 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

garry23

@a1ex

In the script I'm playing with I wish to hijack the SET and UNPRESS_SET keys, so I can use these with a long press, ie use normally if the press/unpress is less that x seconds, or use differently if longer than x seconds.

All is OK, other than the ETTR remains triggered by a SET, no matter what I do.

That is, the ETTR triggered by SET seems to circumvent the key event handler, eg if I use the following, ETTR still triggers off of SET:

if kk == KEY.SET or kk== KEY.UNPRESS_SET then
    return false
end


Is this intentional or a 'bug'?

Cheers

Garry

a1ex

Answered here: https://www.magiclantern.fm/forum/index.php?topic=21155.msg194047#msg194047

A fix would be non-trivial, and I prefer not to think too much about it right now.

garry23

@a1ex

You really know how to embarrass someone  :) :) :)

Your memory is phenomenal!

I have a workaround.

Fully understand this is not a priority matter, especially for you.

Cheers and stay safe

Garry