Author Topic: Key event handler and ETTR  (Read 1566 times)

garry23

  • Contributor
  • Hero Member
  • *****
  • Posts: 2218
Key event handler and ETTR
« on: January 22, 2021, 02:00:23 PM »
@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:

Code: [Select]
if kk == KEY.SET or kk== KEY.UNPRESS_SET then
    return false
end

Is this intentional or a 'bug'?

Cheers

Garry

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Key event handler and ETTR
« Reply #1 on: January 22, 2021, 03:03:32 PM »
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

  • Contributor
  • Hero Member
  • *****
  • Posts: 2218
Re: Key event handler and ETTR
« Reply #2 on: January 22, 2021, 03:28:41 PM »
@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