-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save and restore keyboard/input source mappings
Mapping ofi(keyboardId -> Input source ID) is saved in UserDefaults as a Dictionary [String:String] Upon startup, autokbis builds a mapping of (InputSourceID -> TSInputSource) then reads the saved mapping and reassociates each keyboardeh with its input source. If the input source associated with a keyboard is no longer available, the keyboard will be left unmapped and will therefore use the last selected input source until it is given a specific mapping. Upon each inputsource change, and upon program exit the mapping is saved to UserDefaults. fixes #5
- Loading branch information
Showing
1 changed file
with
50 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters