This is quite a complex subject and unfortunately the API to handle keyboards and layouts suck. We struggled a lot with this and I don’t think we’ll be able to improve on it until the underlying stack improves.
Even if the hotkey does not match what your would get from your current keyboard layout, it will work fine following the actual buttons you pressed (as long as you don’t change layout).
The hotkey that appears is the one that you would have to perform if you were using a US keyboard.
Feel free to open a feature request to track this.