Register a listener that fires whenever the keyboard input source changes.
Read currentLayout(), currentSourceID(), or map inside the listener to inspect the new
state.
Parameters
event: "change"
The event to listen for (the only event this module emits)
listener: ()=>void
Called with no arguments when the input source changes
Register a listener that fires whenever the keyboard input source changes. Read
currentLayout(),currentSourceID(), ormapinside the listener to inspect the new state.