Handle switching keyboard layouts on Windows
Handle switching keyboard layouts on Windows

Call ActivateKeyboardLayout with the layout of the foreground window to
ensure that all calls to APIs that depend on the active layout in the
render process reflect the active layout of the main process.

Signed-off-by: Antonio Scandurra <0e17b4d558b07b12cd221e35c438be378ba118cf@github.com>

atom/keyboard-layout,atom/keyboard-layout,atom/keyboard-layout