MacBook Pro Function key + Command/Option hotkeys problem I'm using Intellij Idea on Mac, that heavily utilizes hotkeys including Function keys + the Option and Command keys.

While hardware keys + the Option and Command keys work okay, Touch Bar keys + the Option and Command keys pressed don't register the combination, essentially breaking so many hotkey commands in Idea.

Has anyone been able to resolve this problem?
Sharing a solution to this problem, although it's pretty uncommon case.
Root cause of the problem was Karabiner elements setup.
They have a ticket open corresponding to this case:
https://github.com/tekezo/Karabiner-Elements/issues/1160

What you need to do to start registering this hotkeys is essentially enable unknown devices in Karabiner settings.