Here is a small update on the workaround for this bug.
In order to be able to enter characters with Alt-Gr modifier just after login, I have to first launche Keepass2, then close it, then open it a second time. So switching between keyboards layout as presented in my initial bug report is not really needed. The importat thing is to open Keepass2 and close it once. best regards, Luc