Skip to content

Commit

Permalink
fix: make config to be read properly
Browse files Browse the repository at this point in the history
  • Loading branch information
Serpentiel committed Aug 30, 2022
1 parent ffc9dfb commit 9f4a7d6
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions internal/pkg/eventhandler/handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,16 +61,13 @@ func newFnKeyHandler() *fnKeyHandler {
return &fnKeyHandler{
inputSources: inputsource.All(),

// TODO: Make this configurable.
primaryInputSources: viper.GetStringSlice("primary_input_sources"),

// TODO: Make this configurable.
additionalInputSources: []string{
"com.apple.keylayout.Finnish",
},
additionalInputSources: viper.GetStringSlice("additional_input_sources"),
}
}

// getNextInputSource returns the next input source.
func (h *fnKeyHandler) getNextInputSource(inputSources *[]string) int {
nextInputSource := 0

Expand Down

0 comments on commit 9f4a7d6

Please sign in to comment.