Code

Hopefully fix #334800 (input devices configuration not saved).