From 9f4a7d63487016a89411a7e16312c35e00b02c4e Mon Sep 17 00:00:00 2001 From: Aleksander Zaruczewski Date: Tue, 30 Aug 2022 11:26:06 +0300 Subject: [PATCH] fix: make config to be read properly --- internal/pkg/eventhandler/handler.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/internal/pkg/eventhandler/handler.go b/internal/pkg/eventhandler/handler.go index 1f68f77..e33ebe6 100644 --- a/internal/pkg/eventhandler/handler.go +++ b/internal/pkg/eventhandler/handler.go @@ -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