Why doesn't Karabiner map F2 from the touch bar? [duplicate]

I used Karabiner to map f2 to return_or_enter, so that F2 can rename files in the Finder. The configuration is "for all devices", not specific keyboards and is taken directly from Karabiner on-line configuration options "Use F2 as Rename."

This works on my external keyboards (Apple and Microsoft), but not in the touch bar.

Apparently touch bar F2 is not being detected as such--even though Karabiner EventViewer shows its events as code 59, f2, just like the external keyboard.

Touch bar configuration is shown below.

How can I configure this correctly in Karabiner?

f-key settings


Solution 1:

Maybe it's your setting problem. https://github.com/pqrs-org/Karabiner-Elements/issues/1700