Skip to content

Commit d66f34f

Browse files
committed
#311 code formatting and changelog update
1 parent 81be6ad commit d66f34f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Emojis for the following are chosen based on [gitmoji](https://gitmoji.dev/).
1919
- Adds a new menu to the Scribe app allowing users to set their preferences for their respective language keyboards!
2020
- Users now have easy access to the Scribe GitHub, the Matrix community, rating the app, sending bug reports and emailing the team.
2121
- A menu option has been added that allows the user to add a command and period to the baseline letter keys.
22-
<!-- - A menu option has been added that allows the user to disable emoji autosuggestions and autocompletions. -->
22+
- A menu option has been added that allows the user to disable emoji autosuggestions and autocompletions.
2323

2424
<!-- ### 🎨 Design Changes
2525

Keyboards/KeyboardsBase/KeyboardViewController.swift

+4-4
Original file line numberDiff line numberDiff line change
@@ -2009,25 +2009,25 @@ class KeyboardViewController: UIInputViewController {
20092009
}
20102010
}
20112011
}
2012-
2012+
20132013
func setCommaAndPeriodKeysConditionally() {
20142014
let langCode = languagesAbbrDict[controllerLanguage] ?? "unknown"
20152015
let userDefaults = UserDefaults(suiteName: "group.scribe.userDefaultsContainer")!
20162016
let dictionaryKey = langCode + "CommaAndPeriod"
20172017
let letterKeysHaveCommaPeriod = userDefaults.bool(forKey: dictionaryKey)
2018-
2018+
20192019
if letterKeysHaveCommaPeriod {
20202020
letterKeys[3] = ["123", "selectKeyboard", ",", "space", ".", "return"]
20212021
} else {
20222022
letterKeys[3] = ["123", "selectKeyboard", "space", "return"]
20232023
}
20242024
}
2025-
2025+
20262026
func emojiAutosuggestIsEnabled() -> Bool {
20272027
let langCode = languagesAbbrDict[controllerLanguage] ?? "unknown"
20282028
let userDefaults = UserDefaults(suiteName: "group.scribe.userDefaultsContainer")!
20292029
let dictionaryKey = langCode + "EmojiAutosuggest"
2030-
2030+
20312031
return userDefaults.bool(forKey: dictionaryKey)
20322032
}
20332033

0 commit comments

Comments
 (0)