diff --git a/Keyboards/LanguageKeyboards/English/ENInterfaceVariables.swift b/Keyboards/LanguageKeyboards/English/ENInterfaceVariables.swift index c43ca5cd..3ff3b4c1 100644 --- a/Keyboards/LanguageKeyboards/English/ENInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/English/ENInterfaceVariables.swift @@ -174,6 +174,8 @@ func getENKeys() { letterKeys = EnglishKeyboardProvider.genPadExpandedLetterKeys() symbolKeys = EnglishKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["~", "`"] + rightKeyChars = ["\\", "°"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { letterKeys = EnglishKeyboardProvider.genPadLetterKeys() @@ -182,12 +184,11 @@ func getENKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["q", "1"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "1"] - // TODO: add "p" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/French/FR-AZERTYInterfaceVariables.swift b/Keyboards/LanguageKeyboards/French/FR-AZERTYInterfaceVariables.swift index 61072204..40127676 100644 --- a/Keyboards/LanguageKeyboards/French/FR-AZERTYInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/French/FR-AZERTYInterfaceVariables.swift @@ -171,6 +171,8 @@ func getFRKeys() { letterKeys = FrenchKeyboardProvider.genPadExpandedLetterKeys() symbolKeys = FrenchKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["@", "`"] + rightKeyChars = ["*"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { letterKeys = FrenchKeyboardProvider.genPadLetterKeys() @@ -179,12 +181,11 @@ func getFRKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["q", "a", "1", "@", "~"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "a", "1", "@", "~"] - // TODO: add "p" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/German/DEInterfaceVariables.swift b/Keyboards/LanguageKeyboards/German/DEInterfaceVariables.swift index a2423c3e..693fc166 100644 --- a/Keyboards/LanguageKeyboards/German/DEInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/German/DEInterfaceVariables.swift @@ -217,7 +217,8 @@ func getDEKeys() { letterKeys = GermanKeyboardProvider.genPadExpandedLetterKeys() } symbolKeys = GermanKeyboardProvider.genPadExpandedSymbolKeys() - + leftKeyChars = ["^", "`"] + rightKeyChars = ["*"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { if userDefaults.bool(forKey: "deAccentCharacters") { @@ -229,13 +230,11 @@ func getDEKeys() { symbolKeys = GermanKeyboardProvider.genPadSymbolKeys(currencyKeys: currencyKeys) letterKeys.removeFirst(1) - + leftKeyChars = ["q", "a", "1", "\"", "$"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "a", "1", "\"", "$"] - // TODO: add "ü" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/Italian/ITInterfaceVariables.swift b/Keyboards/LanguageKeyboards/Italian/ITInterfaceVariables.swift index a4920fcb..6b05fc45 100644 --- a/Keyboards/LanguageKeyboards/Italian/ITInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/Italian/ITInterfaceVariables.swift @@ -171,6 +171,8 @@ func getITKeys() { letterKeys = ItalianKeyboardProvider.genPadExpandedLetterKeys() symbolKeys = ItalianKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["\\", "`"] + rightKeyChars = ["*", "§"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { letterKeys = ItalianKeyboardProvider.genPadLetterKeys() @@ -179,12 +181,11 @@ func getITKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["q", "1"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "1"] - // TODO: add "p" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/Portuguese/PTInterfaceVariables.swift b/Keyboards/LanguageKeyboards/Portuguese/PTInterfaceVariables.swift index be2a7d7c..99bbb2db 100644 --- a/Keyboards/LanguageKeyboards/Portuguese/PTInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/Portuguese/PTInterfaceVariables.swift @@ -170,6 +170,8 @@ func getPTKeys() { letterKeys = PortugueseKeyboardProvider.genPadExpandedLetterKeys() symbolKeys = PortugueseKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["~", "`"] + rightKeyChars = ["\\", "~"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { letterKeys = PortugueseKeyboardProvider.genPadLetterKeys() @@ -178,12 +180,11 @@ func getPTKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["q", "1", "$"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "1"] - // TODO: add "p" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/Russian/RUInterfaceVariables.swift b/Keyboards/LanguageKeyboards/Russian/RUInterfaceVariables.swift index 9d9c8839..f696631e 100644 --- a/Keyboards/LanguageKeyboards/Russian/RUInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/Russian/RUInterfaceVariables.swift @@ -165,6 +165,8 @@ func getRUKeys() { letterKeys = RussianKeyboardProvider.genPadExpandedLetterKeys() symbolKeys = RussianKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["§", "`"] + rightKeyChars = ["+", "₽"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { letterKeys = RussianKeyboardProvider.genPadLetterKeys() @@ -173,12 +175,11 @@ func getRUKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["й", "ф", "1", "@", "$"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["й", "ф", "1", "@", "$"] - // TODO: add "х" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/Spanish/ESInterfaceVariables.swift b/Keyboards/LanguageKeyboards/Spanish/ESInterfaceVariables.swift index 84f95dfd..d356ea74 100644 --- a/Keyboards/LanguageKeyboards/Spanish/ESInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/Spanish/ESInterfaceVariables.swift @@ -214,6 +214,8 @@ func getESKeys() { } symbolKeys = SpanishKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["|", "`"] + rightKeyChars = ["*", "§"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { if userDefaults.bool(forKey: "esAccentCharacters") { @@ -226,12 +228,11 @@ func getESKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["q", "a", "1", "@", "€"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "a", "1", "@", "€"] - // TODO: add "p" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } } diff --git a/Keyboards/LanguageKeyboards/Swedish/SVInterfaceVariables.swift b/Keyboards/LanguageKeyboards/Swedish/SVInterfaceVariables.swift index e4ab2c5a..e0923b4b 100644 --- a/Keyboards/LanguageKeyboards/Swedish/SVInterfaceVariables.swift +++ b/Keyboards/LanguageKeyboards/Swedish/SVInterfaceVariables.swift @@ -221,6 +221,8 @@ func getSVKeys() { } symbolKeys = SwedishKeyboardProvider.genPadExpandedSymbolKeys() + leftKeyChars = ["§", "`"] + rightKeyChars = ["§", "*"] allKeys = Array(letterKeys.joined()) + Array(symbolKeys.joined()) } else { if userDefaults.bool(forKey: "svAccentCharacters") { @@ -233,12 +235,11 @@ func getSVKeys() { letterKeys.removeFirst(1) + leftKeyChars = ["q", "a", "1", "@", "€"] + rightKeyChars = [] allKeys = Array(letterKeys.joined()) + Array(numberKeys.joined()) + Array(symbolKeys.joined()) } - leftKeyChars = ["q", "a", "1", "@", "€"] - // TODO: add "å" to rightKeyChar if the keyboard has 4 rows. - rightKeyChars = [] centralKeyChars = allKeys.filter { !leftKeyChars.contains($0) && !rightKeyChars.contains($0) } }