This problem is apparently fixed in KeePassX 2 alpha 5.
https://www.keepassx.org/dev/issues/116 For me it wasn't. As a workaround, add to your autostart setxkbmap it -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org