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
Returns void
Throws
Throws an Error on failure; wrap calls in try/catch to handle it.
Register a listener that fires whenever the keyboard input source changes. Read
currentLayout(),currentSourceID(), ormapinside the listener to inspect the new state.