It seems to be related to this known issue: IJPL-54496 National keyboard layouts support.
Unfortunately, there is no convenient solution to this problem.