Skip to content

Commit

Permalink
Merge pull request #61 from scribe-org/comma-space-shortcut
Browse files Browse the repository at this point in the history
#56 Add comma-space to letter keys shortcut
  • Loading branch information
andrewtavis authored Dec 1, 2021
2 parents 7a353a0 + 0acc72e commit 2603ecb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 2 additions & 4 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,12 @@ Emojis for the following are chosen based on [gitmoji](https://gitmoji.dev/).

### ✨ Features

<!-- - Adds comma-space to letter keys functionality. -->
- Adds comma-space to letter keys functionality.
<!-- - Adds question mark and exclamation point followed by space to capital letter keys functionality. -->

### 🎨 Design

<!-- - The display of hold-to-select characters now better resembles that of system keyboards. -->
<!-- - Fixes the display of the system header in the app when the user is in dark mode, as the white text was hard to read. -->

- Fixes the display of the system header in the app when the user is in dark mode, as the white text was hard to read.
- The keyboard has been made taller for iPhones as there were issues with the wrong keys being typed.

### 🐛 Bug fixes
Expand Down
6 changes: 6 additions & 0 deletions Keyboards/KeyboardsBase/KeyboardViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,14 @@ class KeyboardViewController: UIInputViewController {
case "Leerzeichen":
if previewState != true {
proxy.insertText(" ")
if proxy.documentContextBeforeInput?.suffix(2) == ", " {
changeKeyboardToLetterKeys()
}
} else {
previewBar?.text! = (previewBar?.text!.insertPriorToCursor(char: " "))!
if previewBar?.text!.suffix(3) == ", " + previewCursor {
changeKeyboardToLetterKeys()
}
}
typedNounAnnotation()
typedPrepositionAnnotation()
Expand Down

0 comments on commit 2603ecb

Please sign in to comment.