Fix layout based decimal saperator on number pad.

Original fix submitted by Pierre Ossman.
See bugzilla Bug #652362 for more information.